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.
[ Parent
| on HN ]
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
> 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.