Live data from Hacker News

Why I'm Learning Node

rdegges.com

21–30 of 65 posts

Re: Why I'm Learning Node

#21
post #16

As noted somewhere else learning node is not learning front-end. Something that bothered me recently is that on the back-end we are used to big oop frameworks when in fact the stateless nature of http do not match oop so well. On the front end however we have a gui so oop is a good paradigm.

Huh? What does the statelessness of HTTP have to do with OOP, particularly on the server, but not the client?

Re: Why I'm Learning Node

#23
post #19

The problem with node is it decreases your productivity tremendously. The most important thing about the choice of programming tools is productivity. Node.JS does not promise you any productivity gains. Node sells itself as a solution to "slowness" caused by "blocking IO". What's the solution? All I/O is evented! This means you have to write everything with callbacks. You may see some very nice libraries/tools coming…

You may see some very nice libraries/tools coming out around node.js, like jade, coffeescript, and stylus. These are all nice and good, and they do increase your productivity, but, only on the client side.

I disagree. Firstly, CoffeScript is not confined to the client-side. Besides, there are some modules like socket.io for which you will hardly find any substitues in other eco-systems.

You're also discounting the effects of context shifts between two separate languages - one on the client side, and the other on the server side.

Lastly, I would like to know what you find productive about Go, that's not the case with either CS/JS on Node.

Re: Why I'm Learning Node

#24
post #14
post #8

If the point is to learn front-end development, it seems like you're still sticking to your strengths instead of challenging yourself and delving into actual front-end DOM manipulation stuff.

Agree. It seems the OP is just moving from one language to another rather than from one domain (back-end) to another (front-end). If you're learning JavaScript to get familiar with front-end and UI, Node.js is just a distraction. Instead, my advice is to learn raw HTML/CSS/JS without frameworks. You know those cheesy web-based "OSes"/Desktops that no one really uses? Building one is actually quite helpful to developi…

Sure. Then he will want to kill himself when trying to use of all those inferior and mismatched technologies for any kind of complex application (achieving crossbrowser support will ensure many nights of fun!). He will then go back to coding server-side where at least you can use sane language and tools so you can be as productive as possible. However, he will be thinking about this glimpse of hell for the rest of his career.

Re: Why I'm Learning Node

#26

Not many people know this, but Javascript: The Good Parts is available online as a PDF, for free! http://www.rose-hulman.edu/Users/faculty/rickert/OldFiles/Cl...

I think you have the wrong link there. It goes to a paper about Self.

It's a joke, except it points to the wrong link. It should be have been to http://people.csail.mit.edu/jaffer/r4rs_toc.html

Re: Why I'm Learning Node

#27
post #19

The problem with node is it decreases your productivity tremendously. The most important thing about the choice of programming tools is productivity. Node.JS does not promise you any productivity gains. Node sells itself as a solution to "slowness" caused by "blocking IO". What's the solution? All I/O is evented! This means you have to write everything with callbacks. You may see some very nice libraries/tools coming…

Red herring. Node can increase productivity as well. It's all about your requirements and workflow.

Re: Why I'm Learning Node

#28
post #21
post #16

As noted somewhere else learning node is not learning front-end. Something that bothered me recently is that on the back-end we are used to big oop frameworks when in fact the stateless nature of http do not match oop so well. On the front end however we have a gui so oop is a good paradigm.

Huh? What does the statelessness of HTTP have to do with OOP, particularly on the server, but not the client?

I guess because you effectively have to re-initialise most things on a per-request basis or run into race-conditions etc.

Re: Why I'm Learning Node

#29
post #23
post #19

The problem with node is it decreases your productivity tremendously. The most important thing about the choice of programming tools is productivity. Node.JS does not promise you any productivity gains. Node sells itself as a solution to "slowness" caused by "blocking IO". What's the solution? All I/O is evented! This means you have to write everything with callbacks. You may see some very nice libraries/tools coming…

You may see some very nice libraries/tools coming out around node.js, like jade, coffeescript, and stylus. These are all nice and good, and they do increase your productivity, but, only on the client side. I disagree. Firstly, CoffeScript is not confined to the client-side. Besides, there are some modules like socket.io for which you will hardly find any substitues in other eco-systems. You're also discounting the ef…

The decrease in productivity with node comes from having to write everything with callbacks. Programming asynchronously is crazy, it makes very simple algorithms very annoying to write.

I'd say it's almost like writing in assembly. You have to write your code in some pseudo code first, synchronously, then translate that into the asynchronous callback spaghetti than node requires.

> Lastly, I would like to know what you find productive about Go, that's not the case with either CS/JS on Node.

Not having to write everything asynchronously?

I haven't actually used go, but the way goroutines communicate (and synchronize) with channels suggests to me (from what I've read/seen) that this callback spaghetti problem is non-existent in Go.

Re: Why I'm Learning Node

#30
post #5

After reading so many negative things about nodejs, I'm completely surprised to report that it is actually pretty damn cool. Most of these negative things were (are being?) written by people who target Node's shortcomings without giving due concern to the areas it shines in. Good Parts is definitely a good read. If anyone is looking for more reading materials on JavaScript, I had written a post about it recently: htt…

Thanks for the link! There is a lot of useful JavaScript knowledge over there that's begging to get on http://www.tiljs.com/
Post reply on HN