@PaulWhite If that question migrated from meta gets closed, will it become a rejected migration on meta as it happens with other cross-site migrations?
At first I thought it would've been better to just close it on meta, but now I'm curious what will happen when it's closed here (if it's closed, of course).
Oh, it's no longer a migrated question? How did that happen?
Hi there! Anyone here good with innodb recovery? I have a .frm and .ibd files for a wordpress database, and I need to dump all the data. Don't want to reconstruct the entire database/tables, just want to get as much data from it as possible. The files are from a MySQL on Windows server, and my recovery environment is linux :|
I don't understand your downvote. Everything I said is correct and this question is Oracle related. Noone cares about SQL-Server in this thread! — ora-60011 mins ago
I know I won't be getting any big promotions if I keep using "request" instead of "ask". People will think I'm some kind of throw-back to the dark ages.
> ‘Sometimes one is forced to consider the possibility that affairs are being conducted in a manner which, all things being considered and making all possible allowances is, not to put too fine a point on it, perhaps not entirely straightforward.’
I guess the answer is: the way everyone else on your team counts lines of code. If you are setting that standard, ask them, then come to an agreement. Using the VS definition seems easy, yes.
@Darth_Wardy From my point of view, Line 2 in your statement doesn't do anything. It is nothing without Line 1, so should not be considered a separate line
yeh that's why i'm thinking of having a standard which is something like "aim for a method that fits on your screen that should be roughly 30 lines (according to VS)"
based on our standard screen sizes and resolutions
its more a should than a must
and the code reviewer would make the call as to weather or not the standard was broken
many things of course would come in to play
based on that, the same above would be treated as 4 lines
@Darth_Wardy see, if you prefer readability of a single line over readability of a single function, that could go either way. If I was told all my code had to fit the height of code window in Visual Studio, I'd make all my multi-line code into single lines. The unfortunate side-effect there would be reduced readability of that code down the road.
I had a junior tell me the other day that "SRP was not worth apply in code because it took longer to create new classes in new files than simply throwing a bunch of methods in the main program class"
this is coming from the guy that wrote a whole business process in a single method
I'm looking to avoid that
I basically threw SOLID at him and said ... how do we unit test this?
@MaxVernon yeh i was literally just saying stuff like "why is your parsing code making business decisions" and "why is validation writing xml files"
and when you get to line 2000 in a single mthod and you are 5 loops deep I felt i was completely lost as to what private variables I had and what state those variables were in
so he broke it all down in to a ton of static methods in the program class ech about 30 to 70 lines long and was like "there ya go SRP" ... i was like ... eh???
in case anyone's wondering what that's all about, see this
fond memories from my childhood
@Darth_Wardy that is frightening when you see it. It's really frightening when you have to go back and fix legacy code written by someone 5 years ago that looks like that. Good luck is all I can say.
@MaxVernon well that's why i basically sat there and told him that under no condition unless he could prove it was both 1 working and 2 testable was it ever going anywhere near production
and the boss already gave him a deadline to get it production ready
@MaxVernon he's not happy because the boss keeps changing the requirements on him either which doesn't help but I told him if he followed SOLID more rigidly then each refactor might only be in a couple of methods instead each time he has to dig through about 2000 lines of mess
he so far is in agreement but says stuff like "well that's where we want to be but aren't there yet"
and i'm like ... well we will be when you do as your told instead of complaining
@ypercubeᵀᴹ and, if you have to ask "how much", you can't afford it!
So, while you may think I'm not being constructive, I'm actually trying to ensure you get the best answer possible. Presumably you are aware of the XY problem and are simply adding the 3rd column to slow things down? If you're interested, look at this question, which provides more details. — Max Vernon30 mins ago
@Erik Hi, Erik, how are you? I haven't seen you in The Heap lately. Your votes (in case you haven't voted already, of course) and/or opinions regarding this meta question would be much appreciated. Cheers.