1,637 reputation
312
bio website
location
age 23
visits member for 2 years, 11 months
seen Apr 9 at 21:36

Dec
13
awarded  Scholar
Dec
13
accepted Should I provide synonyms in an API?
Dec
12
comment Should I provide synonyms in an API?
What if a function is known by multiple names (like foldl vs reduce, I vs id, etc?)
Dec
12
asked Should I provide synonyms in an API?
Dec
12
revised What's the term for “while(true)” loop with “break” inside?
added 2 characters in body
Dec
12
answered What's the term for “while(true)” loop with “break” inside?
Dec
12
comment What are the disadvantages of unobtrusive script patterns in web applications?
I think the term "unobstrusive Javascript" was originally more for when your page can also work fine without Javascript (due to using an old browser or having it disabled). I don't know if it still as relevant now given how most people now use Javascript compatible browsers.
Dec
5
comment What hurts maintainability?
Isn't this a bit tautological? :)
Dec
1
comment Elegant ways to handle if(if else) else
I don't like implicitely passing arguments as instance variables like that. You get full of "useless" instance variables and there are many ways to botch up your state and break the invariants.
Nov
29
comment What would you do if your client required you not to use object-oriented programming?
@Marcin: its true that modern FP languages are quite powerful. I just really wanted to point out the distingction between data-structurs/ADTs and OO
Nov
29
answered What would you do if your client required you not to use object-oriented programming?
Nov
23
awarded  Nice Answer
Nov
18
answered Is it better to return NULL or empty values from functions/methods where the return value is not present?
Nov
17
revised Is it OK to use dynamic typing to reduce the amount of variables in scope?
formatting
Nov
17
suggested suggested edit on Is it OK to use dynamic typing to reduce the amount of variables in scope?
Nov
12
comment Can a function be too short?
I'm talking about things identity function from the Haskell standard library - I don't think you can get more "tautological" then that :)
Nov
11
comment Is it OK to use dynamic typing to reduce the amount of variables in scope?
I can imagine it would be horribly comlicated but I don't think it would cause any runtime problems. Scoping can be determined statically by the compiler.
Nov
11
awarded  Student
Nov
11
comment Is it OK to use dynamic typing to reduce the amount of variables in scope?
I'm not worried about reusing variables for performance. I'm worried about the bug risk of leaving variables (and values) in scope after they cease to be useful to me.
Nov
11
comment Is it OK to use dynamic typing to reduce the amount of variables in scope?
I edited the question in order to try to clear up my point. I don't think this is a strict duplicate of the "reuse variables" question since my main issue is scoping the variable. I also don't think the answer there is useful to me, since in both examples I gave the transformation function (open, new RegExp) is already refactored. Also for my purposes refactoring things in many methods is an orthogonal issue, since just adding extra blocks {} would do mostly the same thing, as far as scoping goes...