How Not to Node.js : A handbook to avoid common Node.js pitfalls and build cleaner, faster, and production-ready apps

  • 予約
  • ポイントキャンペーン

How Not to Node.js : A handbook to avoid common Node.js pitfalls and build cleaner, faster, and production-ready apps

  • ただいまウェブストアではご注文を受け付けておりません。 ⇒古書を探す
  • 製本 Paperback:紙装版/ペーパーバック版
  • 言語 ENG
  • 商品コード 9781836648499

Full Description

Level up from writing code that works to writing code that scales and avoid performance and production issues like a pro

Key Features

Identify and fix common Node.js anti-patterns before they impact production
Avoid performance bottlenecks by understanding Node.js internals
Apply proven patterns to write clean, maintainable, and scalable Node.js code

Book DescriptionNode.js makes it easy to get started, but just as easy to get things wrong.
How Not to Node.js takes a practical, no-nonsense approach to uncovering the most common mistakes developers make, and shows you exactly how to avoid them.
The book is structured around real-world anti-patterns, guiding you through how to identify, understand, and fix problematic code. You'll start by learning how patterns and anti-patterns shape application design, before diving into asynchronous pitfalls, event loop behavior, and error handling. As you progress, you'll explore architectural concerns such as logging, middleware design, environment management, and API reliability.
By the end, you won't just know how to write Node.js code, you'll know how to avoid writing bad Node.js code, building applications that are clean, scalable, and production-ready.What you will learn

Recognize common JavaScript and Node.js anti-patterns and refactor them effectively
Write clean, maintainable code by avoiding common code smells and bad practices
Manage environment variables securely and efficiently
Build resilient APIs with proper error handling, rate limiting, and response design
Diagnose and fix memory leaks using profiling and heap analysis tools
Handle asynchronous operations correctly using promises and async/await

Who this book is forThis book is for Node.js developers who want to level up from writing code that works to writing code that scales.
Whether you're an early-career developer struggling with asynchronous patterns or an experienced engineer dealing with performance and production issues, this book will help you identify what's going wrong and how to fix it.

Contents

Table of Contents

Understanding the Concept of Patterns and Anti-Patterns
Spotting and Solving Anti-Patterns
Staying Away from Smelly Code
Dealing with the Most Common Anti-Patterns in Node.js
Understanding Promises and Callbacks
Dangling Promises and Uncaught Exceptions
Dealing with Timers and the Event Loop
Best Practices with Event-Based Code
Understanding When and How to Log
Extracting the Best of Middlewares
What are hot and cold functions
Error Handling Done Right
Creating the Best API with Timeouts, Response Codes, and Rate Limiting
Taking Control of Your Environment
How the Garbage Collector can be your Friend
Knowing your Objects with Object Shapes and Hidden Classes
Memory Leaks and Where They Come From
Summary and finalization

最近チェックした商品