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

Chapter 1. Welcome to the Node.js Platform

Some principles and design patterns literally define developer experience with the Node.js platform and its ecosystem; the most peculiar ones are probably its asynchronous nature and its programming style that, in its simplest incarnation, make heavy use of callbacks. It's important that we first dive into these fundamental principles and patterns, not only for writing correct code, but also to be able to take effective design decisions when it comes to solving bigger and more complex problems.

Another aspect that characterizes Node.js is its philosophy. Approaching Node.js is in fact way more than simply learning a new technology; it's also embracing a culture and a community. We 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 addition to these aspects, it's worth knowing that the latest versions of Node.js introduced support for many of the features described by ES2015 (formerly ES6), which makes the language even more expressive and enjoyable to use. It is important to embrace these new syntactic and functional additions to the language in order to be able to produce more concise and readable code and come up with alternative ways to implement the design patterns that we are going to see throughout this book.

In this chapter, we will learn the following topics:

  • The Node.js philosophy, the "Node way"
  • Node.js version 6 and ES2015
  • The reactor pattern—the mechanism at the heart of the Node.js asynchronous architecture
主站蜘蛛池模板: 炉霍县| 建湖县| 内乡县| 中卫市| 微博| 洪江市| 荆州市| 昌宁县| 寻乌县| 镇江市| 浦东新区| 柳州市| 武穴市| 谷城县| 榆社县| 万山特区| 仁怀市| 顺平县| 金坛市| 青铜峡市| 黄龙县| 确山县| 乐亭县| 永春县| 安康市| 灵寿县| 汝阳县| 金华市| 革吉县| 井冈山市| 浏阳市| 凌源市| 涪陵区| 肃宁县| 原平市| 福清市| 简阳市| 新巴尔虎左旗| 平南县| 西藏| 章丘市|