3,176 reputation
21029
bio website
location Chicago, IL
age 26
visits member for 3 years, 2 months
seen 1 hour ago

Mar
6
comment How can robots beat CAPTCHAs?
@KChaloux I thought downvoting -anything- on a non-Meta site was -1 rep to the downvoter, which is returned if the question is closed/deleted
Mar
5
comment How can architects work with self-organizing Scrum teams?
"Hey, EA, now you sit over here and are still communicating with the same people. Just more often." How exactly does this help solve any of the conflicts between the EA and the other devs?
Mar
4
comment Why is test driven development missing from Joel's Test?
Also, "Yes, I do top-down design." ;)
Mar
3
comment No programmer will build my semi-adult website. Why?
@RossPatterson Question has since been reopened - want to transplant it into an answer?
Feb
28
comment Why are references rarely used in PHP?
If you need multiple returns, return array($foo, $bar); and list($A, $B) = foobar();
Feb
27
comment How can you explain “beautiful code” to a non-programmer?
@KirkBroadhurst Vladimir Script (^_^)
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.