News for hackers. Stuff that matters.
Re:Node.js - A giant step backwards? by phzbOx on Wednesday January 25, 2012 @03:01PM (#3511453)
I rarely use ifs and whiles using javascript.. There are better, higher level libraries that take care of it for you. As a bonus, some of them let you make it * paralleled* with the same syntax. Obviously, when you switch to a new language, you need to learn their new paradigms / designs.
Re:Node.js - A giant step backwards? by robfig on Wednesday January 25, 2012 @07:26PM (#3512386)
Rarely use ifs?

What do you do if you want to see if, e.g. there are any results for the user's query?

I would do

if (results.length > 0)

or something

Re:Node.js - A giant step backwards? by adgar on Wednesday January 25, 2012 @03:12PM (#3511501)
> As a bonus, some of them let you make it * paralleled* with the same syntax.

JavaScript is single-threaded, so parallelism within a single JS VM is not possible.

Re:Node.js - A giant step backwards? by phzbOx on Wednesday January 25, 2012 @03:30PM (#3511581)
Hence the *