JavaScript: It’s Not Just for Browsers Any More
pragprog.com
JavaScript: It’s Not Just for Browsers Any More
1–10 of 93 posts
Re: JavaScript: It’s Not Just for Browsers Any More
#2 > During development, one small, yet important, feature that Node lacks is the
> ability to auto-restart when a change is made to the server’s source code.
Hm...sounds like a good application for Node's file-watching capability, so I don't see why this needs to be built-in. Start your app indirectly with a script that monitors the source files.Re: JavaScript: It’s Not Just for Browsers Any More
#3Re: JavaScript: It’s Not Just for Browsers Any More
#4Re: JavaScript: It’s Not Just for Browsers Any More
#5I'm not trying to imply something against this aproach, this really is a question.
Re: JavaScript: It’s Not Just for Browsers Any More
#6Strangely enough, Netscape Corporation once marketed javascript as a lightweight server-side language. IIRC the browser-side javascript thing was an afterthought.
Re: JavaScript: It’s Not Just for Browsers Any More
#7Why do we want javascript on the server side, when we already have so many other options? I'm not trying to imply something against this aproach, this really is a question.
Re: JavaScript: It’s Not Just for Browsers Any More
#8Why do we want javascript on the server side, when we already have so many other options? I'm not trying to imply something against this aproach, this really is a question.
It's actually remarkably similar to Scheme [1] with very flexible arrays and real first-class functions.
Re: JavaScript: It’s Not Just for Browsers Any More
#9Why do we want javascript on the server side, when we already have so many other options? I'm not trying to imply something against this aproach, this really is a question.
1) This approach lets me put together a quick server without a big, complex container to configure (No Apache, Tomcat, Rails, (Insert Python Framework Here), etc).
2) Javascript really is a nice language to program in. First class functions lead to some neat tricks, and aside from a few minor quirks (scoping issues, overloading the "+" operator) it lacks nasty gotchas like Java and PHP, at least so far.
3) Lots of programmers have JS experience and web experience, so there's a large potential pool of users (Subjectively, this may or may not be a good thing, see PHP. But there's demand)
It's probably not the be-all-end-all, but there are some positive reasons to see work in this space. I'm curious to see how the language implementations evolve as people start doing more complex server side things with JS.
Re: JavaScript: It’s Not Just for Browsers Any More
#10Hot code loading in NodeJS has been implemented many times, see e.g.: http://romeda.org/blog/2010/01/hot-code-loading-in-nodejs.ht...