View Full Version : Node.js Information Sought

02-17-2012, 05:39 PM
I've been reading lately about node.js especially in relation to web scraping.

As a javascript noob I can't see all the pros and cons.

Can anyone enlighten me on node.js - good and bad - and what pratical application is seen from running javascript server-side.


Rogers Thompson

02-18-2012, 01:25 AM
I'm trying to figure it out myself. This is the functionality I'm looking for http://vimeo.com/24149718 which is part of an article at AT&T Developer website http://developer.att.com/developer/forward.jsp?passedItemId=9600004 source is here: https://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs

I got it installed on my local machine, but have had some trouble getting it installed on my bluehost server.

I bought this book http://www.amazon.com/Node-Web-Development-David-Herron/dp/184951514X/ref=sr_1_1?ie=UTF8&qid=1329527614&sr=8-1 called "Node Web Development" and it walks you through setting up a couple different applications, one to dish out pages, another a chat system as well as interfacing with sqlite3. But currently I can only run it locally. The book is great, gives a good walkthrough of concepts.

I also got a couple books on "Javascript design patterns" I would highly recommend. After reading it the node book makes a lot more sense. It's some hardcore object oriented modulized javascript. Anonymous functions, callback functions, dozens of narly patterns, closures, inheritance, delegates, javascript is no joke.

You run websockets or socketio over node to actually connect users. You can use either http, TCP, or even UDP with node.