Tagged articles
21 articles
Page 1 of 1
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Dec 27, 2025 · Backend Development

Mastering Java Inner Classes: Organize, Encapsulate, and Simplify Your Code

The article explains how Java inner classes can be used to encapsulate related functionality, access private members of the outer class, implement interfaces for callbacks, and hide implementation details, providing clear code examples such as Car/Engine, Counter/Incrementer, Button listeners, and a Calculator with an Operation inner class.

CallbacksEncapsulationInner Classes
0 likes · 4 min read
Mastering Java Inner Classes: Organize, Encapsulate, and Simplify Your Code
Liangxu Linux
Liangxu Linux
Dec 24, 2025 · Fundamentals

Mastering C Function Pointers: From Basics to Embedded Applications

This tutorial explains what function pointers are, how to declare and use them in C, and demonstrates practical embedded‑system patterns such as callbacks, state machines, command dispatch, and advanced techniques like pointer arrays and struct members, while highlighting common pitfalls.

CCallbackscommand dispatch
0 likes · 13 min read
Mastering C Function Pointers: From Basics to Embedded Applications
BirdNest Tech Talk
BirdNest Tech Talk
Sep 28, 2025 · Artificial Intelligence

Mastering LangChain Callbacks: Track LLM Execution Step‑by‑Step

LangChain’s callback system lets developers hook into every stage of an LLM chain— from chain start/end to token generation—using built‑in handlers like StdOutCallbackHandler or custom handlers derived from BaseCallbackHandler, with examples showing constructor‑level and request‑level attachment, plus a custom handler implementation.

AICallbacksDebugging
0 likes · 6 min read
Mastering LangChain Callbacks: Track LLM Execution Step‑by‑Step
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
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
php Courses
php Courses
Nov 12, 2024 · Backend Development

Function Object Programming (FOP) and Its Alternatives in PHP

The article explains Function Object Programming (FOP) in PHP, outlines its drawbacks, and presents alternative approaches such as anonymous functions, class methods, and closures with code examples, concluding with practical usage scenarios and guidance on choosing the most suitable method.

Anonymous FunctionsCallbacksFunction Objects
0 likes · 4 min read
Function Object Programming (FOP) and Its Alternatives in PHP
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
php Courses
php Courses
May 24, 2024 · Backend Development

Using array_reduce() in PHP: Syntax, Parameters, and Practical Examples

This article explains PHP's array_reduce() function, detailing its syntax and parameters, and demonstrates its usage through three examples: summing numbers, concatenating strings, and calculating product, helping beginners understand how to reduce arrays to a single value with callbacks.

CallbacksPHParray manipulation
0 likes · 4 min read
Using array_reduce() in PHP: Syntax, Parameters, and Practical Examples
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
Liangxu Linux
Liangxu Linux
Dec 27, 2023 · Fundamentals

Why Callbacks Are Just Function Variables: A Simple C Example

This article explains that callbacks are essentially function variables, illustrating the concept with plain C code examples, comparing direct function calls to passing functions as parameters, and showing how this approach avoids massive if‑else chains while keeping the logic clear and reusable.

C programmingCallbacksfunction pointers
0 likes · 3 min read
Why Callbacks Are Just Function Variables: A Simple C Example
ByteFE
ByteFE
Apr 29, 2021 · Frontend Development

Avoid Using Functions as Callbacks Unless They Are Designed for It – Common Pitfalls in JavaScript and TypeScript

The article explains how using functions that were not intended as callbacks—such as library utilities, Web APIs, or option objects—can break when array.map or other higher‑order functions pass extra arguments, and it shows safer patterns, TypeScript behavior, and linting hints to prevent these bugs.

CallbacksJavaScriptTypeScript
0 likes · 12 min read
Avoid Using Functions as Callbacks Unless They Are Designed for It – Common Pitfalls in JavaScript and TypeScript
php Courses
php Courses
Apr 19, 2021 · Backend Development

Using Anonymous Functions (Closures) in PHP: Examples and Techniques

This article explains PHP anonymous functions (closures), demonstrating how to reference local variables with the use keyword, embed anonymous functions within regular functions, return them, pass parameters, and use them as arguments, accompanied by clear code examples.

Anonymous FunctionsCallbacksclosures
0 likes · 2 min read
Using Anonymous Functions (Closures) in PHP: Examples and Techniques
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
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
21CTO
21CTO
Apr 24, 2016 · Mobile Development

Why Android Apps Rely on Callbacks and How to Keep Your Code Clean

This article explains how most Android code is driven by event callbacks, examines single‑event and multi‑event implementations, discusses the pitfalls of bloated callbacks, and offers practical strategies to structure and simplify callback‑heavy code for clearer, more maintainable apps.

AndroidCallbacksEvent-driven
0 likes · 7 min read
Why Android Apps Rely on Callbacks and How to Keep Your Code Clean