9,170 reputation
12352
bio website future-web-app.blogspot.com
location Israel
age 41
visits member for 3 years, 11 months
seen 16 hours ago

I mostly do Erlang and CoffeeScript these days and am the author of "Building Web Applications in Erlang" and "Programming HTML5 Applications" Both of which were published by O'Reilly.

I am also very interested in the question, How do I become a great developer and spend a fair bit of time thinking about it.

I am also a compulsive writer. I love writing as it forces me to really think about what is important and how to make ideas seem more concreate


Jan
30
comment How to unit test a missing case in a switch statement where all cases are true
Then when you update the library, dialyzer will update its lookup table and let you know. Mind you it is possible to have a wildcard case clause that might catch these, but in general Erlang discourages defensive programming.
Jan
30
comment How to unit test a missing case in a switch statement where all cases are true
Well Erlang does not have an enum per se, but you can have unions of atoms. If you add a new element to a union if it won't match dialyzer, which is a static analysis tool, will tell you that it can't match
Jan
29
answered How to unit test a missing case in a switch statement where all cases are true
Jan
25
awarded  Yearling
Jan
14
answered Avoid Initial AJAX Call for Loading Data
Jan
7
comment Side Effects Breaking Referential Transparency
Also if those functions are transparent or "pure" the order that they actually run in is not important, we don't care if foo() or bar() runs first, and in some cases they may never evaluate if they are not needed
Dec
30
comment Why would a company develop an atmosphere which discourage code comments?
This is when you want to comment, yes I can see that foo has been set to 1, but if you set it to 137 leaving a note saying why it should be 137 would be helpful.
Dec
9
comment In what meaningful ways does Erlang prevent race conditions in concurrent programming?
There is also a new tool Concuerror youtube.com/watch?v=FpkjKN9wTKg which lets you run your tests with all possible event orderings
Nov
10
awarded  Necromancer
Nov
2
awarded  Nice Answer
Oct
17
comment Single Page Web Application and Requiring JavaScript
I would be very careful of why you think its bad to require Javascript, in some cases you might want to do that , but in the modern age this has become more of a dogma then a real need. For sure if there is a good reason to avoid JavaScript then that is reasonable, but doing it just because its "Bad" is probably not in the best intrest of the project.
Sep
4
answered What will be correct answer to “why is NoSQL faster than SQL” on interview?
Aug
27
awarded  Enlightened
Aug
27
awarded  Nice Answer
Jul
7
awarded  Nice Answer
May
9
comment What is your go-to application when you start learning a new language?
Yup, if you can understand it well enough to write about it you understand it pretty well. Its not nearly as crazy as it sounds
Apr
29
comment Is obtrusive JavaScript ever ok?
What I am talking about is how will the site function if Javascript is turned off. There are some times where it will be fully functional (if maybe not as nice) and others where it will fail completely. I am not worried about old browsers that do not support JavaScript (Netscape 1). Of course in any case there is no reason to write BAD javascript
Apr
22
awarded  Nice Answer
Apr
15
answered Are there any statically-typed Web scripting languages?
Mar
18
comment Is it a good idea to schedule regular time to clean up code?
We do a "Technical Debt Tuesday" for this. Its half way threw an Israeli work week and lets us take a step back to deal with issues