2,884 reputation
2922
bio website
location Chicago, IL
age 26
visits member for 2 years, 10 months
seen 15 hours ago

Feb
27
comment Is it possible to half-way synchronize javascript functions that include async calls?
Also, there's a library called Step that does something similar: github.com/creationix/step
Feb
27
comment Is there an idiom for a loop that executes some block of instructions between iterations? (In Ruby in particular)
If a variant of fold or reduce is unavailable, I'd just initialize s and i with the results of the first iteration instead of "empty" values. Then the condition can be moved onto the loop.
Feb
26
comment Does anyone work 10 hours shifts as a developer?
@ErikReppen If I recall correctly, you can get increased productivity for about a week or two by doing 10-hour days, but then you burn out and there's a massive drop. "10-hour days by accident" sounds like it's just a day or two, so you're not hitting that burnout.
Feb
26
comment Engineering interview candidate refuses to use whiteboard
Whiteboards are like ballpoint pens: Too slippery. My writing is illegible (or gigantic) when I use either. Did he use a pencil or a gel pen (they're slightly more scratchy than ballpoints) on his notepad?
Feb
25
awarded  Caucus
Feb
25
comment Do iterative methods reduce cyclomatic complexity and improve supportability?
Warning: Magic Numbers! (>_<)
Feb
24
comment How do I convince my boss (and other devs) to use/consider Unobtrusive JavaScript
FireQuery could help with the "takes too long" part. Not sure how well it works with events, but it should at least tell you that an element has events on it.
Feb
22
comment Why do large websites use different languages for the backend and frontend?
Now I want to make a public web service written in Malbolge that does something really simple/common, just so someone can say their furthest backend uses it.
Feb
18
comment How does if/else work internally in all programming languages?
@GlennNelson Internally, in which language? There's a lot of differing versions.
Feb
12
comment Using double dot notation in URL link
@Ryathal - dreza is correct, /MyLink is an absolute path. You're thinking of MyLink, which is a relative path in the current directory/level (and is the same as ./MyLink)
Feb
10
suggested suggested edit on Interview puzzle on traveling on a line segment
Feb
8
comment Can a function be too short?
@Spooks No, that is common to see in javascript: function foo(callback) { callback = callback || function () {}; /* do stuff */ callback(); }
Feb
5
comment Is path coverage stronger than condition coverage?
I don't think your first bullet point (or the same remark in the question) is correct; given 1 if statement, there's 2 paths, not 1. You can enter it, or not. For complete path coverage, you must test both.
Feb
4
comment Is path coverage stronger than condition coverage?
@user970696 No, subexpressions are definitely counted, as they may have further branches inside of them.
Feb
4
comment Is path coverage stronger than condition coverage?
@user970696 See updated answer
Feb
4
revised Is path coverage stronger than condition coverage?
added 948 characters in body
Feb
4
comment How do I avoid feature creep on a solo project?
If each unfinished feature was in its own branch...
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.