JavaScript and Node.js can be a powerful tools used in the right situations, but they also have more footguns than PHP does for new developers. Asynchronous programming style, concurrency issues, error handling, the event loop, and no default timeouts for HTTP requests or network calls will give new developers more than their fair share of troubles and can cause issues that are difficult to debug and reproduce.

This talk gives a brief introduction to Node.js and the event loop model (don’t block the event loop!), and covers common pitfalls when using Node.js with simple and practical solutions.

Comments

Comments are closed.

Vance did an excellent job presenting technical information about how Node works. His examples were thorough, the flow built up and was understandable. and he kept a good pace. He demonstrated potential pitfalls and gave good references to other support libraries. Great talk.

Matt Trask at 11:08 on 22 Apr 2017

An interesting look into the Javascript event loop. Tons of great information and some good tips to avoid gotchas within the language. 10/10 will javascript more.

Wun Chiou at 12:46 on 22 Apr 2017

Really liked the insight into the event loop model. I also liked that he started with relating that the talk would have two parts, and then proceeded to transition between them and tie them together well. Speaking style is a bit understated, but still one of the better talks I've seen here at LSP this year.

Not being deep into Node, I didn't have a good understanding of the JS event loop before going into this talk. The demo slides that illustrated how items are added/removed from the stack were extremely useful, and I came out of the talk with a much clearer understanding of how JavaScript works behind the scenes.