Reputation
1,823
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
9 18
Newest
 Yearling
Impact
~94k people reached

Aug
18
awarded  Yearling
Aug
4
comment What is the term for an anonymous JavaScript function that's called immediately?
Note you will often see this construct (inaccurately) referred to as a "self-calling function"
Jul
31
comment Shuffle/Randomize a collection without knowing the number of items?
If you actually want 'pick 3 elements uniformly at random from an arbitrary sequence without knowing the sequence length', this is impossible (each element should have a probability of 3/n of being picked, which you can't know without knowing n). If you want 'pick 3 elements uniformly at random from a sequence of known length without necessarily enumerating the whole sequence', this is doable.
Jul
24
comment What is the time complexity of this program?
@DhruvMullick ask them if they want worst case O(n log n), or if they'd be happy with average O(n log n) / worst-case O(n^2). The latter describes quicksort, for example, which people tend to think of as suitable for general use.
Apr
29
comment What options does a disciplined developer have when joining a team of undisciplined developers as a regular member, not a lead?
From The Past: Getting Things Done When You're Only a Grunt
Apr
24
comment Why was the grave but not the acute accent included in ASCII?
You say "The apostrophe and the acute accent are two quite different characters", but I've seen typewriters which lacked a one and a zero, because a lowercase l and a capital O will serve...
Apr
9
answered How do you find out what resources are unmanaged?
Mar
27
comment What causes floating point rounding errors?
See this on meta.SO and linked questions
Mar
3
awarded  Deputy
Feb
20
answered Should changes to FNV-1A's input exhibit the avalanche effect?
Dec
16
comment Is this a pattern? If so, which one? (Contexts, Requests and Responses)
@RobertHarvey indeed not, but a service-oriented approach is what he's perhaps aiming for ("decouple the function and presentation of an application (duh) in such a way, that the two parts actually communicate via an interface"). Your answer is a good answer, as opposed to my throwaway comment.
Dec
16
comment Is this a pattern? If so, which one? (Contexts, Requests and Responses)
Separation of concerns. n-tier. Service-Oriented Architecture, probably best overall.
Dec
4
comment Why do UTC Dates have different days of the week for some months?
I'm not sure what's holding you back from working this out yourself, you seem to have all the pieces: "every month between 3 and 9 (April and November) " and "I eventually noticed this only happened when I built the dates with the default constructor. Once I tried using the Date.UTC() method to build the dates, everything went as expected." and "I'm assuming it has something to do with DST" collectively point you square at the answer. I'd imagine the docs for new Date(y,m,d) will provide explicit confirmation.
Nov
4
comment How name class which display data?
Is there a particular reason you don't want to use DataDisplayer ?
Sep
30
awarded  Explainer
Sep
30
revised Derive subset with sum between two values
clarify with comments and edits incorporated
Sep
30
comment Derive subset with sum between two values
I've attempted an edit to restate the problem with all the comments incorporated/addressed, hopefully it hasn't changed the problem.
Sep
30
suggested approved edit on Derive subset with sum between two values
Sep
17
comment Is it possible to programmatically attach custom metadata to phone calls?
"I can be sure that my custom data will be forwarded intact by the cellular network nodes." - it's not just the cellular network you'd need to worry about. Depending on where the recipient is, the call could pass over any arbitrarily-poor-quality POTS, which I would guess would guarantee that there's no sideband guaranteed to be available. This is however just a guess.
Sep
4
comment BDD based on 1-liner requirements
And here's Eric Lippert on the importance of having a spec