3,273 reputation
21030
bio website
location Chicago, IL
age 26
visits member for 3 years, 6 months
seen 15 hours ago

Feb
4
comment Is path coverage stronger than condition coverage?
@user970696 In that case, what is condition coverage? The only reference I can find isn't strictly by that name, and is about single if statements, which again, is strictly less powerful than path coverage, because you'll check both results of the first if while ignoring the second, then both results of the second if while ignoring the first - but not how they interact (if I'm reading it right).
Feb
4
answered Is path coverage stronger than condition coverage?
Feb
4
comment Why does automated testing keep failing in my company?
I tend to agree with this.. We've gotten into the habit of making tests only after something breaks (even if that breaking was during development). Never up-front, takes too much time for too little reward.
Feb
4
comment Why does automated testing keep failing in my company?
Gameify it?
Feb
3
comment Is the average number of bugs per loc the same for different programming languages?
@tdammers And that importance can be negative. We have a handful of bugs that the client is used to/expects/wants, so we can't fix them...
Feb
1
comment How safe are hidden AJAX requests that fake performance?
@KilianFoth I'd prefer the one who assumes everything can go wrong, if the "sunny" person is going to punch you and steal your wallet at the first sign of trouble. So it depends on the scale of the page's reaction on failure.
Jan
29
comment Cleaning Up Generated Code: Refactor or Map?
@MichaelKohne Then three weeks later, the requirements change just a tiiiiiny bit and you have to anyway. =P
Jan
28
comment MVC exposes database primary keys?
@MichaelBorgwardt Because passwords and encryption keys aren't used in a void
Jan
28
answered MVC exposes database primary keys?
Jan
25
comment How to name a variable when the word is both a noun and a verb
@BrianSnow When dealing with batteries, I'd avoid the word current..
Jan
25
comment Why do we use story points instead of man days when estimating user stories?
@Ryathal A man-day is the average amount of work gotten done in one calendar day. Those two days will average out somewhere in between.
Jan
25
comment How do we make unit tests run fast?
Damn, I wish our tests were only 2-3 minutes. To run all our unit tests, it takes 25 minutes - and we don't have any integration tests yet.
Jan
24
comment Is the number of bugs in a section of code proportional to the # of lines ? The square of the # of lines ?
@LokiAstari They didn't, because the internals changed (they were badly written tests that checked what they shouldn't have). I left the concept behind the tests in, but completely rewrote them. And no, not worse because it has tests (except perhaps in a false sense of security) - but this made-up metric does not take into account the quality of anything. Just quantity.
Jan
24
comment Refactoring: Two big chunks within a function
Can the input data for one of the cases be safely modified to match the input data for the other one? If so, I'd transform it and use one of the "large block of statements" after the transformation
Jan
24
comment Is the number of bugs in a section of code proportional to the # of lines ? The square of the # of lines ?
@LokiAstari Semantically identical code. For example, we had a Search module that was tested up the wazoo, but still very buggy, and causing problems every week. I rewrote it in about a month, cut down the number of tests by about half (after the rewrite was done; I don't like TDD. Admittedly most weren't necessary, duplicating the same type of edge case), and it's been a good 4 months or so with zero issues.
Jan
24
comment Is the number of bugs in a section of code proportional to the # of lines ? The square of the # of lines ?
Far, far more likely, it's proportional to the skill of the person who coded it, adjusted for complexity of what that code is intending to do.
Jan
24
comment Is the number of bugs in a section of code proportional to the # of lines ? The square of the # of lines ?
@LokiAstari I, on the other hand, have seen the opposite enough times to know that code with tests isn't necessarily less buggy.
Jan
22
comment How to structure our Javascript so that it is easily editable, testable, and can make calls to render a view without knowing specifics about the view
@BenjaminGruenbaum dynamically writes the java script with the needed data embedded in it - this is more commonly known as a "template" ...
Jan
21
comment What are the warning signs of impending doom to watch out for on a project?
This may be largely true, but not strictly true. I underwent such a project about 9 months ago, and it was a success. Spent over half the time on it devising tests to prove it was correct and that old/new bugs weren't introduced to the new version, and found a bunch of new bugs in the existing one in the meantime. (Though, I suppose, this makes this answer true as a warning sign)
Jan
21
comment Temporary variables vs line length requirements
Your $host and $uri example is kind of contrived, though - unless the host was being read from a setting or other input, I'd prefer them being on the same line, even if it does wrap or go off the edge.