5,802 reputation
1227
bio website
location
age
visits member for 3 years, 8 months
seen 5 hours ago

May
2
comment Why don't more languages have the ability to compare a value to more than one other value?
@hdv: No, not really. This is order of operations stuff. If you want to say something like (a == (b || c)) then you can argue that. What's the alternative you're arguing for? "a == b || c || d || e" as valid syntax? That's a trainwreck.
Apr
15
comment Why must directories be empty before being deleted?
@JohnGaughan Agreed. Almost all resource reclamation is more nuanced than people appreciate.
Apr
15
comment Why must directories be empty before being deleted?
This assumes that the filesystem will automatically recover the space from those orphaned files, and that may not be the case.
Mar
26
comment What to expect as a programmer in a bank?
You will NEVER have to do the math. They hire accountants to do that, and you will be required to conform to their methods.
Mar
25
comment Is “Explain the RAII idiom” a good C++ screening question?
@KazDragon: I think if you look up the thread, no one agrees with you. All the highest voted comments say, "See if they can implement the pattern, not that they know what it's called." Your insistence on the acronym is pedantic, nothing more.
Mar
25
comment Is “Explain the RAII idiom” a good C++ screening question?
@KazDragon: This concept is so basic that if you haven't internalized it after 5 years, and still feel the need to trot out the cute little acronym in daily speech, you're incompetent.
Mar
25
comment Is “Explain the RAII idiom” a good C++ screening question?
@KazDragon: It's trivia that has no bearing on whether or not you can successfully implement the design pattern. If I walked into an interview and the interviewer started quizzing me on acronyms rather than code, that'd be a huge red flag.
Jan
9
comment What is meant by “Now you have two problems”?
@Steve314: Hell, half the time I can't read my own regex if I did something unusual. It's just so useful though...
Jan
9
comment What is meant by “Now you have two problems”?
Even if you understand them and use them properly, they make the code harder to support for the wider "We don't get regular expressions" masses.
Dec
31
comment Emotional detachment from bad code
@JeffO Actually he specifically says he can't replace the whole codebase. I understand the frustration of fixing a bug that wouldn't exist if the whole system wasn't screwed up, but that's the rule in this industry, not the exception.
Dec
31
comment Emotional detachment from bad code
-1: Typically lacking in any sort of real-world experience. Bad code is generated at a much faster rate than good code, most programmers don't care, and most managers will only support even a partial refactor when all other avenues of mitigation have been exhausted. That combination of factors explains the entire industry. You can only do your best to swim against the current.
Dec
12
comment How to do simple natural language categorization
PhD level knowledge doesn't include how to do this. It's an extraordinarily complicated question...Imagine the amount of work that would go into categorizing a simple list of things that can be bought. Now, imagine a category list of places that sell. Now build all the natural language causal links between the two. Now add another person.
Dec
10
comment COBOL & Mainframe & Business
@paulkayuk: Well, some do retire. I've noticed that a lot of them stay on the job forever though, and just kick off in the traces, as it were. I've dealt with an unfortunately large number of ~70 year olds..."New" is not in their vocabulary, and if you go to them with a problem, they'll make you sit through a long rant about the state of the industry (doesn't matter what industry) before they give you some cryptic advice that will make perfect sense once you solve the problem yourself.
Dec
6
comment Will loop constructs become obsolete?
@KChaloux: Scheme is that way as well. I still have to fight the desire to do things recursively.
Nov
25
comment How can a potential customer find “best” offer in agile software development?
@jk How could they preclude Agile? Agile is not antithetical to planning, and design documents. Write up your milestones, use those as your sprint goals, and touch base with the customer after each one to see if things are progressing in the right direction. It's entirely possible that they won't want to change anything, and that's their privilege.
Sep
26
comment Developer failing developer interviews
@JoelEtherton I hate hate hate those damn questions with a passion. But they're not that difficult to study for. It's almost always trivial stuff, and if you come up with a couple of quirky implementations beforehand, you can often slap something up on the board that'll make their jaw hit the floor. It's an opportunity
Jul
19
comment Object Oriented Design
@RalphChapin: All kinds of things eat lion (vultures, bugs, etc). I think animal and food are artificial distinctions that will break down because they're not broad enough (all animals are some other animals food, eventually). If you classed on "LivingThing" you'd only have to deal with the edge cases with plants that eat non-living things (minerals,etc), and it wouldn't break anything to have LivingThing.Eat(LivingThing).
Jan
9
comment Do you sign each of your source files with your name?
@JohnFx: Nothing like a user who wants to chime in 3 months after the question is closed, just to make a snide remark. I leave my name on it in case they need to add new features, or lose the documentation, or have any questions. If your code is so simple that it never needs to be supported, then no, you probably wouldn't want to put your name on it. I, on the other hand, just made 5k modernizing some Java code from 2000. Yay me.
Nov
3
comment What do you do when you encounter an idiotic interview question?
@graham: It was a perl job, but they were testing my Java ability. I did a bunch of stuff in Perl, and then they said, "Now do it in Java." I did it, but I used "elsif" where I should have used "else if". Bullshit test. If you can do the logic, everything else is semantics.
Oct
21
comment Do you actually write 'clean code'?
@peter: And in two decades, I've never seen a place where every piece of code was clean. I've rarely even seen a place where half was. Where do you work? NASA?