mirror of
https://github.com/goldbergyoni/nodebestpractices.git
synced 2025-11-01 18:46:54 +08:00
return to top links
This commit is contained in:
13
README.md
13
README.md
@ -88,9 +88,10 @@
|
||||
|
||||
<br/><br/><br/>
|
||||
|
||||
# `2. Error Handling Practices`
|
||||
<p align="right"><a href="#table-of-contents">⬆ Return to top</a></p>
|
||||
|
||||
# `2. Error Handling Practices`
|
||||
|
||||
## ![✔] 2.1 Use Async-Await or promises for async error handling
|
||||
|
||||
**TL;DR:** Handling async errors in callback style is probably the fastest way to hell (a.k.a the pyramid of doom). The best gift you can give to your code is using instead a reputable promise library or async-await which provides much compact and familiar code syntax like try-catch
|
||||
@ -209,7 +210,9 @@
|
||||
|
||||
🔗 [**Read More: failing fast**](/sections/errorhandling/failfast.md)
|
||||
|
||||
<br/><br/><Br/>
|
||||
<br/><br/><br/>
|
||||
|
||||
<p align="right"><a href="#table-of-contents">⬆ Return to top</a></p>
|
||||
|
||||
# `3. Code Style Practices`
|
||||
|
||||
@ -383,6 +386,8 @@ All statements above will return false if used with `===`
|
||||
|
||||
<br/><br/><br/>
|
||||
|
||||
<p align="right"><a href="#table-of-contents">⬆ Return to top</a></p>
|
||||
|
||||
|
||||
# `4. Testing And Overall Quality Practices`
|
||||
|
||||
@ -456,6 +461,7 @@ All statements above will return false if used with `===`
|
||||
|
||||
<br/><br/><br/>
|
||||
|
||||
<p align="right"><a href="#table-of-contents">⬆ Return to top</a></p>
|
||||
|
||||
# `5. Going To Production Practices`
|
||||
## ![✔] 5.1. Monitoring!
|
||||
@ -641,6 +647,9 @@ All statements above will return false if used with `===`
|
||||
**Otherwise:** Long deployments -> production down time & human-related error -> team unconfident and in making deployment -> less deployments and features
|
||||
|
||||
<br/><br/><br/>
|
||||
|
||||
<p align="right"><a href="#table-of-contents">⬆ Return to top</a></p>
|
||||
|
||||
# `Security Practices`
|
||||
|
||||
## our contributirs working on this section, would you like to join?
|
||||
|
||||
Reference in New Issue
Block a user