From 200e6aa92537f2e6faba4fea44383d206b1ce69c Mon Sep 17 00:00:00 2001 From: idori Date: Mon, 16 Oct 2017 23:22:51 +0300 Subject: [PATCH] async await --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index b6e0dcdf..c3b92659 100644 --- a/README.md +++ b/README.md @@ -261,6 +261,26 @@ Text here... ## ✔ 3.8 Naming conventions for variables, constants, functions and classes **TL;DR:** Use ***lowerCamelCase*** when naming variables and functions, ***UpperCamelCase*** (capital first letter as well) when naming classes and ***UPPERCASE*** for constants. This will help you to easily distinguish between plain functions and classes that require instantioation. Use descriptive names, but try to keep them short. + +

+ +## ✔ 3.9 Use the `===` operator + +text here + +

+ +## ✔ 3.9 Use Async Await, avoid callbacks + +**TL;DR:** Node 8 LTS now has full support for Async/Await. This is a new way of dealing with asyncronous code which supercedes callbacks and promises (while actualy relying on promises). Async Await is non blocking, and it makes asynchronous code looks more synchronous + +**Otherwise** [Callback hell 🔥](http://icompile.eladkarako.com/wp-content/uploads/2016/01/icompile.eladkarako.com_callback_hell.gif) + +[**More reading:** Guide to async await 1.0](https://github.com/yortus/asyncawait) + +

+ +