官术网_书友最值得收藏!

  • Node.js Design Patterns
  • Mario Casciaro Luciano Mammino
  • 197字
  • 2021-06-18 18:15:04

1 The Node.js Platform

Some principles and design patterns literally define the developer experience with the Node.js platform and its ecosystem. The most peculiar one is probably its asynchronous nature, which makes heavy use of asynchronous constructs such as callbacks and promises. In this introductory chapter, we will explore where Node.js gets its asynchronous behavior from. This is not just good-to-know theoretical information: knowing how Node.js works at its core will give you a strong foundation for understanding the reasoning behind more complex topics and patterns that we will cover later in the book.

Another important aspect that characterizes Node.js is its philosophy. Approaching Node.js is, in fact, far more than simply learning a new technology: it's also embracing a culture and a community. You will see how this greatly influences the way we design our applications and components, and the way they interact with those created by the community.

In this chapter, you will learn about the following:

  • The Node.js philosophy or the "Node way"
  • The reactor pattern—the mechanism at the heart of the Node.js asynchronous event-driven architecture
  • What it means to run JavaScript on the server compared to the browser
主站蜘蛛池模板: 贵南县| 方山县| 江油市| 淮安市| 龙海市| 南充市| 永仁县| 屏边| 德江县| 曲靖市| 那曲县| 龙州县| 东乌珠穆沁旗| 济源市| 乌兰浩特市| 大关县| 长海县| 虹口区| 砚山县| 阳泉市| 安远县| 赫章县| 那曲县| 梁河县| 贵德县| 苍溪县| 湖北省| 确山县| 东丰县| 桑日县| 嘉兴市| 宽城| 云浮市| 永定县| 黑龙江省| 鱼台县| 密山市| 崇仁县| 阿鲁科尔沁旗| 黄石市| 自治县|