node.js: Javascript's in your backend

Has the traditional intro to event looped servers (thanks Ryan!) with a couple of examples of why I think node.js is particularly exciting today. Code for the demos can be found at
…

Has the traditional intro to event looped servers (thanks Ryan!) with a couple of examples of why I think node.js is particularly exciting today. Code for the demos can be found at https://github.com/davidpadbury/node-intro.

@caseykelso1 Hey Casey. Of course you're right. On callbacks I was more referring to having closures to easily share state between a callback and it's surrounding context, but admittedly that maybe wasn't as clear as it could have been. Real-time was meant in the colloquial web sense of pushing changes.

17.
So I can guess what you’re thinking, “What about multi-threading?”

18.
Yep, mainstream web servers like Apache and IIS* use a Thread Per Connection* Well, technically IIS doesn’t quite have a thread per connection as there’s some kernel level stuff which will talk to IIS/ ASP.NET depending on your conﬁguration and it’s all quite complicated. But for the sake of this presentation we’ll say it’s a thread per connection as it’s pretty darn close in all practical terms. If you’d like to talk about this more feel free to chat to me afterwards, I love spending my spare time talking about threading in IIS. HONEST.

32.
Even if we had a language that madewriting callbacks easy (like C#), we’d need a platform that had minimal to no blocking I/O operations.

33.
If only we had a language which was designed to be inherently single threaded, had ﬁrst class functions and closures built in, and had no preconceived notions about I/O? Wouldn’t it also be really handy if half* of the developers in the world already knew it? (you can probably guess where this is going...) *The guy speaking completely made that up for the sake of this slide. but he’s pretty sure there are quite a few

101.
Currently the best way to get start on Windows is hosting inside a Linux VM and ssh’ing it.http://www.lazycoder.com/weblog/2010/03/18/getting-started-with-node-js-on-windows/ Proper Windows support will be coming soon. http://nodejs.org/v0.4_announcement.html

102.
I think that node is super exciting and that you should start experimenting with it today

103.
But even if you don’t, other WebFrameworks are watching and it will almost certainly inﬂuence them