O'Reilly logo

Node.js in Action, Second Edition by Bradley Meck Alex Young and Mike Cantelon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Node programming fundamentals

This chapter covers

  • Organizing your code into modules
  • Handling one-off events with callbacks
  • Handling repeating events with event emitters
  • Implementing serial and parallel flow control
  • Using flow-control tools

Node, unlike many open source platforms, is easy to set up and doesn’t require much in terms of memory and disk space. No complex integrated development environments or build systems are required. Some fundamental knowledge will, however, help you a lot when starting out. In this chapter, we address two challenges that new Node developers face:

  • How to organize your code
  • How asynchronous programming works

In this chapter, you’ll learn important asynchronous programming techniques that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required