Link Details

Link 588491 thumbnail
User 196895 avatar

By jettro
via blog.jteam.nl
Published: Apr 18 2011 / 15:32

For projects and for some experiments I want to get a better way to do server push. With the new HTML 5 becoming the standard and therefore WebSockets becoming available in all mayor browsers, it seems that WebSockets is the way forward. A very nice implementation of WebSockets that is backwards compatible with older browsers is available through Socket.io. This is a Node.js library. Node.js brings JavaScript to the server. If you are as sceptic about this as I was, stay with me, you will like it after trying. Within this blog post I want to share some of the things I learned while creating a sample application. The sample shows twitter integration for authentication, server push in a chat application that also shows the other persons that are online. The most important node.js libraries I use in the sample are: expressjs, socket.io, node-oauth, connect, jade and sass
  • 32
  • 0
  • 6415
  • 39

Comments

Add your comment
User 851059 avatar

Tony Lukasavage replied ago:

0 votes Vote down Vote up Reply

Serious, non-inciting question: Is there anyone who isn't a web dev that thinks Node.js is a good idea?

User 196895 avatar

Jettro Coenradie replied ago:

0 votes Vote down Vote up Reply

Not sure what you mean with à web developer. But i have been an enterprise java developer for about 10 years. Actually i still am. I think there is room for node.js, just like there is room for rube, groovy or any other Language. Of course you have to think about when to use IT and for what reason.

User 393686 avatar

RawThinkTank replied ago:

0 votes Vote down Vote up Reply

I tried to google for reason to even look at Node.js but not one is convincing enough.

It seems its only for those having hardcore Javascript coding experience.


But anyways , i am sure if its really worth it then some people will create a scala compiler to get output in minified Node.js

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Java Performance Optimization
Written by: Pierre-Hugues Charbonneau
Featured Refcardz: Top Refcardz:
  1. Design Patterns
  2. OO JS
  3. Cont. Delivery
  4. Java EE7
  5. HTML5 Mobile
  1. Node.js
  2. Debugging JavaScript
  3. OO JS
  4. JSON
  5. Ajax