top | item 16546097

(no title)

esMazer | 8 years ago

I'd like to learn Node.js from scratch, but would like to learn on the latest version.. any resources anyone knows for this?

discuss

order

slowmotarget|8 years ago

I'd say it really depends on what you want to to do in the next months ! Node can be a very productive environment for web APIs and applications (with great frameworks such as Express or Koa and amazing libraries such as PassportJS) and I personally use it this way 95% of my time. But in its heart lies the event-loop, the streams, the pipes, its functional programming capabilities and all of this makes it a simple and very pleasant way to script, transform, to build algorithms or neural networks! Plus javascript is becoming a very friendly language as Node and ES6 leveled the browser inconsistencies that turned web developers crazy in the past.

austincheney|8 years ago

Just start writing applications and dig into the API documentation. This is how I learned Node.

I will say having a background in systems programming and scripting for filesystems is hugely beneficial. I am just a pansy JavaScript developer, so I had to figure this all out to be better at writing Node apps.

I will also say current versions of Node are massively backwards compatible. Very little of old features have been deprecated or killed out. This is all spelled out in the API docs.

Perhaps the hardest part to learning Node is wrapping your mind around asychronous operations. Don't spend time with the synchronous methods if an asynchronous method is available.

slowmotarget|8 years ago

You're absolutely right about the backward compatibility. If you're still learning and not on a production server, no need to rush on the latest release.

fernandopj|8 years ago

I'd argue an easy way into NodeJS is to introduce yourself by one of the most popular frameworks, what they do, so you'll see how they benefit from NodeJS and where its strengths lie. I'd recommend ExpressJS or Meteor.

tolmasky|8 years ago

You should use https://runkit.com (disclaimer: I work at RunKit). It lets you try node in your browser, and you can easily switch to any version of node, and additionally we've pre-installed every package.

joeberon|8 years ago

Well the basic concepts are the same. I don't think many of the major concepts such as EventEmitters and Streams have changed. I'm pretty sure most tutorials you will find should still work but I may be wrong

Prefinem|8 years ago

Wes Bos has some good courses that takes you up through ES6 which will be pretty close to the latest node version

megaman22|8 years ago

Chance are, by the time you've learned anything, the wheel will have turned once again, ages will have come and passed, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the age that gave it birth comes again.

In the JS world, back or front-end, this process seems to be accelerating at a terrifying rate, heading to a singularity where all the accumulated brainpower of the human race is devoted to trying to keep up with the latest way that npm or node or babel or webpack has broken shit that previously worked.

dandersh|8 years ago

Cute, but wrong. The basic architecture of Node has not changed, and the core modules are largely the same as they have been for years.

The question "How does Node work and how can I leverage it" (which is what GP is asking) is the same as it was a few years ago.