News for hackers. Stuff that matters.
Re:I don't understand why anyone would use Node.js by whiterabbit on Wednesday June 29, 2011 @10:24AM (#2709564)
You can't program the client in Java.
Re:I don't understand why anyone would use Node.js by pixeloution on Wednesday June 29, 2011 @10:36AM (#2709603)
And how is that relevant? I've heard the argument "Your backend developers can work on the front end too" -- but its a tired argument. Any developer who can't already do both has no place working for a company producing web-based software.
Re:I don't understand why anyone would use Node.js by OliverSteenbuck on Wednesday June 29, 2011 @10:41AM (#2709625)
For example, you don't have to write validating logic for inputs twice.

That somebody can do both things should, in my opinion not mean that he has do both things.

Re:I don't understand why anyone would use Node.js by prodigal_erik on Wednesday June 29, 2011 @10:51AM (#2709668)
There's a huge army of teams who aren't competent to do both, judging by the number of sites that fail completely if the client isn't trusting and running javascript. Node.js seems like a good solution for unobtrusive enhancement, making reliable semantic resources that may still optimize out many server round trips with mobile code.
Re:I don't understand why anyone would use Node.js by barnaby on Wednesday June 29, 2011 @11:12AM (#2709739)
In a perfect world you would be correct. But answer me this:

How many Java backend engineers know how to unit test javascript, how to make modular templates (e.g. writing their own tags, or nesting/tiling their JSP's), how to systematically minify their code in production and use CDN's ... or even how to use any design patterns in Javascript?

Re:I don't understand why anyone would use Node.js by VMG on Wednesday June 29, 2011 @10:43AM (#2709631)
You can use the same code at the front end and at the back end.
Re:I don't understand why anyone would use Node.js by whiterabbit on Wednesday June 29, 2011 @10:54AM (#2709676)
Ideally, would you write your web application using one language, or ten?

And that is how it's relevant. Any developer who can't grasp this concept has no place working for a company producing web-based software.

Re:I don't understand why anyone would use Node.js by sofuture on Wednesday June 29, 2011 @11:01AM (#2709701)
I would choose to write it in however many languages fit the various pieces best. To choose otherwise would be ill-advised.
Re:I don't understand why anyone would use Node.js by whiterabbit on Wednesday June 29, 2011 @11:05AM (#2709715)
By "however many languages fit the various pieces best," did you mean the most or the fewest?
Re:I don't understand why anyone would use Node.js by sofuture on Wednesday June 29, 2011 @12:12PM (#2710007)
I mean I wouldn't make technical decisions dogmatically.
Re:I don't understand why anyone would use Node.js by whiterabbit on Wednesday June 29, 2011 @01:18PM (#2710278)
I think everyone here will back you up on that, but don't infer that zinxq is advocating choice by technical dogma. I read their post as simply asking for an explanation for node.js's accelerating popularity; of course there are many factors, but its ability to reduce lexical context switching is obviously a major component. To argue otherwise would be ill-advised.
Re:I don't understand why anyone would use Node.js by ianterrell on Wednesday June 29, 2011 @10:57AM (#2709693)
Sure you can! http://code.google.com/webtoolkit/

(But who wants to is a separate question.)

Re:I don't understand why anyone would use Node.js by whiterabbit on Wednesday June 29, 2011 @10:59AM (#2709699)
I stand corrected.