357 reputation
19
bio website
location
age
visits member for 3 years
seen Apr 2 at 19:57

Jan
20
comment How should you TDD a Yahtzee game?
'nother TDD novice here, with all the usual misgivings about trying it. Interesting take on if you can make all tests pass with an obviously incorrect implementation, that's feedback that you should write another test. Seems like a good way to tackle the perception that testing the "braindead" implementations is needless busywork.
Jan
5
awarded  Nice Question
Oct
8
comment What to do if you find a vulnerability in a competitor's site?
@awashburn So, knowing that the best they're likely to get by telling you directly is a dollop of goodwill - and the worst is a vicious accusation of espionage - why would a competitor do it at all if not for benevolent reasons? A malevolent competitor gains only by sitting on it or leaking or exploiting it themselves, whether they uncovered it through espionage or accident, but you would happily turn around and bite someone who told you and thereby gave up benefiting materially from it?
Jul
26
comment Are there any programming languages that make use of adjectives?
@jk. Do you have links? Wiki mentions both projects, but doesn't cite anything and refers to Inform 6 specifically, which from what I've seen is a totally different beast. Although I7 compiles down to I6 and allows you to drop into it for low-level code, I don't think it qualifies for being written in I7 by that point :)
Jul
26
awarded  Nice Answer
Jul
19
comment Are there any programming languages that make use of adjectives?
@SeanMcSomething Good point; I don't know why I have a vague memory of seeing it twisted to other uses. Answer updated.
Jul
19
revised Are there any programming languages that make use of adjectives?
Removed suggestion that others have used Inform for non-IF software.
Jul
18
answered Are there any programming languages that make use of adjectives?
Jun
26
comment Do people in non-English-speaking countries code in English?
@danijar In some forum appropriate to improving English skills? I don't think "Humour the guy trying to become a polyglot" features very high on the list of goals for most code bases, especially not where it conflicts with goals like "Remain comprehensible to maintainers."
Jun
19
comment Namespaces, why are they necessary for prefixes?
@UrielKatz See my update on terminology.
Jun
19
revised Namespaces, why are they necessary for prefixes?
Terminology update
Jun
19
comment Namespaces, why are they necessary for prefixes?
I'm not sure I understand what you mean. If you mean that: once an element is identified as belonging in a particular namespace, can the valid attributes of that element be determined? Then the answer is yes; this falls under schema validation. For example, the parser sees f:table, and it knows (from the xmlns:f declaration) that f: means the namespace http://www.w3schools.com/furniture. If it's validating and has the schema for http://www.w3schools.com/furniture available, it can determine which other elements and attributes are required and/or legal under f:table, e.g. f:width.
Jun
19
answered Namespaces, why are they necessary for prefixes?
May
23
comment Is it a bad practice to modify code strictly for testing purposes
+1 You feel safe exposing a public method when it properly protects its invariants.
May
16
awarded  Commentator
May
16
comment Why is 0 false?
@NeilG Good point; I suspected I'd missed something important :P
May
16
comment Why is 0 false?
@NeilG How does your reversed definition extend to the OP's question, which considers any nonzero value to represent true? If 0 is true and anything else is false (which seems to me a more accurate mirror image of the original question), am I missing something when I write 1 + (-1) == 0, therefore false and false == true? Or is it just a case of having to choose operators with different semantics? And if it is, does that not get closer to answering why 0 is historically "false" - because the other way around requires "special" operators?
Apr
25
awarded  Editor
Apr
25
revised Testing multi-threaded race conditions
Quoting the comments in question for readability
Apr
25
suggested suggested edit on Testing multi-threaded race conditions