Tagged articles
27 articles
Page 1 of 1
Ray's Galactic Tech
Ray's Galactic Tech
Jan 2, 2026 · Fundamentals

8 Powerful Asynchronous Patterns Every Developer Should Master

Async programming boosts efficiency by allowing tasks to run while waiting for I/O, and this guide explores eight common implementations—callbacks, Promises, async/await, event emitters, generators, coroutines, ReactiveX, and the Actor model—detailing their advantages, drawbacks, suitable scenarios, and production‑grade best practices.

AsyncCoroutinesactor-model
0 likes · 10 min read
8 Powerful Asynchronous Patterns Every Developer Should Master
Open Source Tech Hub
Open Source Tech Hub
Oct 22, 2025 · Backend Development

Boost PHP Concurrency with Pokio: Async API Guide and Code Samples

Pokio is a lightweight PHP asynchronous API that enables concurrent task execution using PCNTL and FFI, automatically falling back to sequential mode when unavailable; the guide explains installation via Composer, core functions async, await, then, catch, finally, and provides detailed code examples for promises, chaining, and error handling.

Asynchronousconcurrencypcntl
0 likes · 5 min read
Boost PHP Concurrency with Pokio: Async API Guide and Code Samples
Liangxu Linux
Liangxu Linux
Aug 19, 2025 · Backend Development

From Callbacks to Promises: Solving Callback Hell with Async Patterns

The article explains how early thread‑blocking models led to the invention of callbacks, why deeply nested callbacks create "callback hell," and how promises/futures and their chaining, as well as coroutines, provide more linear and efficient asynchronous programming for high‑concurrency backend services.

Callbacksasynchronous programmingcallback hell
0 likes · 6 min read
From Callbacks to Promises: Solving Callback Hell with Async Patterns
JavaScript
JavaScript
May 16, 2025 · Frontend Development

5 Common Async/Await Error‑Handling Pitfalls and How to Avoid Them

This article outlines five frequent async/await error‑handling mistakes developers encounter in production JavaScript code—such as missing try/catch, lost Promise errors, loop handling issues, synchronous errors, and unchecked Promise states—and provides clear, corrected patterns to prevent crashes.

Error HandlingJavaScriptasync/await
0 likes · 5 min read
5 Common Async/Await Error‑Handling Pitfalls and How to Avoid Them
JavaScript
JavaScript
May 2, 2025 · Frontend Development

Mastering Async/Await: Turn JavaScript Asynchronous Code into Synchronous‑Style Logic

This article walks through the evolution of JavaScript asynchronous programming—from callback hell to promises and finally async/await—explaining how async/await works, when true synchronous execution is needed, and providing practical techniques and code examples for clean, maintainable async code.

Code ExamplesJavaScriptasync/await
0 likes · 6 min read
Mastering Async/Await: Turn JavaScript Asynchronous Code into Synchronous‑Style Logic
JavaScript
JavaScript
Mar 24, 2025 · Frontend Development

Why Callbacks Are Fading: From Callback Hell to Async/Await

Callback functions, once fundamental to asynchronous JavaScript, suffer from deep nesting, poor error handling, and maintenance challenges, prompting developers to adopt modern alternatives like Promises and async/await, which offer clearer flow, unified error management, and better integration with contemporary frameworks.

AsynchronousCallbacksJavaScript
0 likes · 6 min read
Why Callbacks Are Fading: From Callback Hell to Async/Await
JavaScript
JavaScript
Jan 16, 2025 · Frontend Development

8 Common JavaScript Pitfalls Every Developer Should Avoid

This article outlines eight frequent JavaScript traps—from type coercion and variable hoisting to this binding, closures, numeric precision, array method quirks, Promise misuse, and event‑listener memory leaks—explaining why they occur and how to resolve them.

JavaScriptbugsclosures
0 likes · 5 min read
8 Common JavaScript Pitfalls Every Developer Should Avoid
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 21, 2024 · Frontend Development

Understanding the New “use” Hook in React 19 and Its Impact on UI Development

This article introduces React 19’s new use hook that reduces reliance on useEffect, explains how to work with resolved promises, demonstrates conditional usage and integration with Suspense through detailed code examples, and discusses practical considerations when using the hook in modern frontend projects.

JavaScriptReactReact19
0 likes · 9 min read
Understanding the New “use” Hook in React 19 and Its Impact on UI Development
FunTester
FunTester
Oct 12, 2024 · Frontend Development

Mastering JavaScript Asynchronous Programming: Callbacks, Promises, and async/await

JavaScript’s single‑threaded nature makes asynchronous programming essential, and this guide explains callbacks, promises (including states and chaining), and async/await syntax with clear examples, illustrating how each technique avoids blocking the main thread and improves code readability and error handling.

AsynchronousCallbacksJavaScript
0 likes · 9 min read
Mastering JavaScript Asynchronous Programming: Callbacks, Promises, and async/await
21CTO
21CTO
Oct 7, 2024 · Frontend Development

What’s New in ECMAScript 2024? Exploring Six Major TC39 Proposals

This article reviews the six key ECMAScript 2024 proposals—including well‑formed Unicode strings, asynchronous atomic wait, the new RegExp v flag, ArrayBuffer transfer, array grouping, and Promise.withResolvers—explaining their purpose, API changes, and providing runnable code examples.

ArrayBufferECMAScriptJavaScript
0 likes · 9 min read
What’s New in ECMAScript 2024? Exploring Six Major TC39 Proposals
Code Mala Tang
Code Mala Tang
Sep 3, 2024 · Backend Development

Mastering async/await in Node.js: Clean Code, Error Handling, and Patterns

This article explains how async/await simplifies callback and Promise code in Node.js, covering async function basics, error handling, retry strategies, parallel execution, array iteration pitfalls, and step‑by‑step refactoring of callback‑ and Promise‑based applications into clear, maintainable async/await code.

Node.jsasync/awaitpromises
0 likes · 17 min read
Mastering async/await in Node.js: Clean Code, Error Handling, and Patterns
21CTO
21CTO
Jul 30, 2024 · Frontend Development

What’s New in ECMAScript 2024? Key Features and Their Impact on JavaScript Development

The article reviews ECMAScript 2024, highlighting new small‑scale features such as improved WebAssembly interop, enhanced Promise utilities, group‑by methods, better Unicode handling, async locking with Atomics.waitAsync, and resizable ArrayBuffers, while also discussing upcoming proposals for 2025.

AsyncECMAScript 2024JavaScript
0 likes · 17 min read
What’s New in ECMAScript 2024? Key Features and Their Impact on JavaScript Development
37 Interactive Technology Team
37 Interactive Technology Team
Feb 21, 2024 · Fundamentals

Deconstructing Asynchronous Programming

The article breaks down modern asynchronous programming by examining four core models—callbacks, Promises, reactive observer patterns, and message‑driven architectures—explaining their mechanics, pros and cons, and providing JavaScript/Dart examples and system diagrams to help developers master non‑blocking concurrency.

Callbacksasync/awaitasynchronous programming
0 likes · 26 min read
Deconstructing Asynchronous Programming
php Courses
php Courses
Apr 14, 2022 · Frontend Development

Common ES6 Pitfalls and Improvements: A Leader’s Code Review Rants

The article presents a series of JavaScript ES6 code‑review critiques, explaining why older ES5 patterns are problematic and demonstrating modern ES6 alternatives such as destructuring, spread operators, template literals, optional chaining, async/await, and array methods with clear code examples.

Code reviewDestructuringJavaScript
0 likes · 8 min read
Common ES6 Pitfalls and Improvements: A Leader’s Code Review Rants
Programmer DD
Programmer DD
Jul 6, 2021 · Frontend Development

Why Async/Await Beats Promises: 6 Compelling Reasons for Cleaner JavaScript

This article explains the async/await syntax, compares it with traditional Promise chains, and outlines six practical advantages—including conciseness, unified error handling, clearer conditional logic, easier intermediate value handling, better stack traces, and simpler debugging—illustrated with real JavaScript code examples.

DebuggingError HandlingJavaScript
0 likes · 9 min read
Why Async/Await Beats Promises: 6 Compelling Reasons for Cleaner JavaScript
KooFE Frontend Team
KooFE Frontend Team
May 25, 2021 · Frontend Development

Why Ignoring Exceptions Is Killing Your JavaScript Code (And How to Fix It)

This article explains why proper exception handling is essential for high‑quality JavaScript, contrasts using return codes with real exceptions, shows clean versus dirty code examples, and offers practical guidelines such as defining custom exception hierarchies, handling Promise rejections, and providing contextual error information.

Exception HandlingJavaScriptcode quality
0 likes · 10 min read
Why Ignoring Exceptions Is Killing Your JavaScript Code (And How to Fix It)
Qunar Tech Salon
Qunar Tech Salon
Dec 5, 2019 · Frontend Development

Evolution of JavaScript: From Prototype Methods to Async/Await and Modern Features

This article traces JavaScript’s evolution, covering the enrichment of prototype methods, standardization of classes and modules, the rise of asynchronous patterns like callbacks, promises, generators, async/await, and modern syntax features such as block scope, symbols, BigInt, reflection, and useful syntactic sugar.

AsyncBIGINTGenerators
0 likes · 28 min read
Evolution of JavaScript: From Prototype Methods to Async/Await and Modern Features
vivo Internet Technology
vivo Internet Technology
Sep 4, 2019 · Fundamentals

Exploring Functional Programming: Concepts and Practical Applications

The article surveys functional programming fundamentals—contrasting it with imperative and declarative styles—and illustrates key concepts such as closures, currying, promises, partial functions, map/reduce, and divmod through Java, JavaScript, and Python examples, before highlighting Scala’s hybrid approach and the advantages of FP for writing elegant, maintainable, concurrent code.

Programming ParadigmsScalaclosures
0 likes · 12 min read
Exploring Functional Programming: Concepts and Practical Applications
AutoHome Frontend
AutoHome Frontend
Jan 7, 2019 · Frontend Development

From Callbacks to Async/Await: Mastering JavaScript Asynchronous Programming

This article walks through the evolution of JavaScript asynchronous patterns—from basic callbacks and their pitfalls, through Promise creation, chaining, and error handling, to the modern async/await syntax—showing how to write clear, maintainable code for real‑world API calls.

AsynchronousCallbacksJavaScript
0 likes · 22 min read
From Callbacks to Async/Await: Mastering JavaScript Asynchronous Programming
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Sep 30, 2018 · Fundamentals

Why Does setTimeout Run After Promise.then? Unraveling JavaScript’s Event Loop

This article explains how JavaScript’s single‑threaded model achieves asynchronous behavior through macro‑tasks and micro‑tasks, compares the browser and Node.js event‑loop implementations, and demonstrates the timing differences between setTimeout, setImmediate, and process.nextTick with practical code examples.

AsyncBrowserJavaScript
0 likes · 9 min read
Why Does setTimeout Run After Promise.then? Unraveling JavaScript’s Event Loop
System Architect Go
System Architect Go
Jul 16, 2017 · Backend Development

From Nested Callbacks to Promises: Modern Async Patterns in Node.js

This article walks through classic Node.js callback examples, demonstrates how event emitters can replace tangled callback nesting, and then shows how promises and async/await provide cleaner, more maintainable asynchronous code, encouraging developers to upgrade their Node version.

CallbacksJavaScriptNode.js
0 likes · 3 min read
From Nested Callbacks to Promises: Modern Async Patterns in Node.js
Node Underground
Node Underground
Jan 18, 2017 · Frontend Development

Mastering Asynchronous JavaScript: From Callbacks to Async/Await

This article explores practical ways to handle asynchronous operations in JavaScript, comparing callbacks, async.js, promises, generators, and async/await, and demonstrates how refactoring code can eliminate callback hell and improve readability for both client‑side and server‑side development.

Asynchronousasync/awaitcallback hell
0 likes · 2 min read
Mastering Asynchronous JavaScript: From Callbacks to Async/Await
Taobao Frontend Technology
Taobao Frontend Technology
Nov 3, 2016 · Frontend Development

Unlock ES6: Master Advanced Modules, Symbols, and Async Patterns

This article delves into ES6’s advanced features—including dynamic module loading, Symbol usage, iterators, Maps, Sets, Weak collections, Promises, async‑await, generators, and meta‑programming tools like Proxy and Reflect—providing concise explanations, code snippets, and practical guidance for modern JavaScript development.

GeneratorsJavaScriptProxy
0 likes · 20 min read
Unlock ES6: Master Advanced Modules, Symbols, and Async Patterns
Node Underground
Node Underground
Aug 30, 2016 · Backend Development

Avoid Common Node.js Pitfalls: DecodeURIComponent, Promises, and HTTP Errors

This article shares real‑world Node.js pitfalls—from unsafe decodeURIComponent usage and hidden Promise errors to unhandled HTTP request failures—explaining why they occur and providing practical code‑level solutions such as try‑catch wrappers and proper error event handling to keep applications stable.

BackendError HandlingHTTP
0 likes · 4 min read
Avoid Common Node.js Pitfalls: DecodeURIComponent, Promises, and HTTP Errors