Tagged articles
65 articles
Page 1 of 1
php Courses
php Courses
Dec 18, 2025 · Backend Development

Master PHP Closures: Build Flexible Functions with Anonymous Functions

This article explains PHP closures, showing their basic syntax, how to use them as function arguments, and how to generate dynamic functions at runtime with clear code examples that illustrate creating reusable and adaptable anonymous functions.

anonymous functioncallbackclosure
0 likes · 5 min read
Master PHP Closures: Build Flexible Functions with Anonymous Functions
php Courses
php Courses
Dec 16, 2025 · Backend Development

Master PHP Callbacks: Define, Implement, and Apply Them Effectively

This guide explains what PHP callbacks are, shows how to define them using anonymous functions or function name strings, demonstrates their implementation as function parameters and class methods, and outlines common scenarios such as event handling, asynchronous processing, and array sorting or filtering.

AsynchronousClass MethodPHP
0 likes · 4 min read
Master PHP Callbacks: Define, Implement, and Apply Them Effectively
Deepin Linux
Deepin Linux
Nov 16, 2025 · Fundamentals

Unlock Asynchronous Power: Master Callback Functions in 3 Minutes

This article explains what callback functions are, how they enable asynchronous programming across languages, demonstrates their implementation with JavaScript, C/C++, Python and HTML examples, and discusses practical use‑cases, advantages, pitfalls like callback hell, and modern alternatives such as Promises and async/await.

AsynchronousC++Event-driven
0 likes · 23 min read
Unlock Asynchronous Power: Master Callback Functions in 3 Minutes
php Courses
php Courses
Sep 19, 2025 · Backend Development

Master PHP’s array_map(): Basics, Advanced Tricks & Real‑World Examples

This article explains PHP’s array_map() function, covering its basic syntax, how to apply callbacks to single or multiple arrays, advanced techniques like passing extra parameters, and provides clear code examples that demonstrate transforming array data efficiently.

PHParray processingarray_map
0 likes · 4 min read
Master PHP’s array_map(): Basics, Advanced Tricks & Real‑World Examples
php Courses
php Courses
Jul 11, 2025 · Backend Development

Master PHP’s array_walk(): From Basics to Advanced Use Cases

Learn how PHP’s powerful array_walk() function lets you iterate over arrays and apply custom callbacks, with clear examples ranging from simple value transformations to advanced techniques like passing userdata, using reference parameters, and integrating class methods for real-world development scenarios.

PHPTutorialarray_walk
0 likes · 5 min read
Master PHP’s array_walk(): From Basics to Advanced Use Cases
Lin is Dream
Lin is Dream
May 15, 2025 · Backend Development

How to Build a Pluggable Operation Log System with AOP and Annotations in Java

This article explains a complete, reusable solution for recording operation logs in Java backend applications using Spring AOP, custom annotations, callback interfaces, and a user‑adapter to bridge third‑party logging libraries with the main program, enabling flexible storage and auditing.

BackendOperation Logannotation
0 likes · 8 min read
How to Build a Pluggable Operation Log System with AOP and Annotations in Java
JavaScript
JavaScript
Feb 18, 2025 · Frontend Development

Why Your setTimeout Callback Breaks: Mastering JavaScript this Binding

This article explains why a typical setTimeout callback loses its this context, outlines the four binding rules in JavaScript, and presents both classic fixes and modern approaches such as arrow functions and class field syntax to avoid common pitfalls in frontend development.

Arrow FunctionsJavaScriptcallback
0 likes · 4 min read
Why Your setTimeout Callback Breaks: Mastering JavaScript this Binding
php Courses
php Courses
Jul 8, 2024 · Backend Development

Using PHP's array_walk() Function: Syntax, Examples, and Advanced Usage

This article explains PHP's powerful array_walk() function, detailing its syntax, parameter roles, basic and advanced examples—including squaring numbers, summing values with userdata, and invoking class methods—while highlighting practical use‑cases for backend development.

Code ExamplePHParray_walk
0 likes · 5 min read
Using PHP's array_walk() Function: Syntax, Examples, and Advanced Usage
Liangxu Linux
Liangxu Linux
Jun 15, 2024 · Fundamentals

Mastering Software Timers on STM32: Theory, Design, and Code

This guide explains what software timers are, their implementation principles in operating systems, and provides a complete STM32‑based example with data structures, state machines, and full C code for initialization, start, update, stop, and status queries.

Embedded CSTM32callback
0 likes · 10 min read
Mastering Software Timers on STM32: Theory, Design, and Code
Liangxu Linux
Liangxu Linux
Jun 10, 2024 · Fundamentals

Mastering Software Timers on STM32: From Theory to Practical Implementation

This article explains what software timers are, their implementation principles in operating systems, and provides a detailed STM32-based example—including clock tick handling, data structures, state management, and full C code for initializing, starting, updating, stopping, and testing timers.

Embedded CSTM32callback
0 likes · 10 min read
Mastering Software Timers on STM32: From Theory to Practical Implementation
php Courses
php Courses
Feb 19, 2024 · Fundamentals

Understanding Callbacks, Anonymous Functions, and Closures in PHP

This article explains the concepts of callbacks, anonymous functions, and closures in PHP, providing definitions, practical examples, and demonstrating how to implement sorting with callback functions, create inline anonymous functions, and use closures to capture external variables, highlighting their benefits for code reuse and readability.

PHPanonymous functioncallback
0 likes · 7 min read
Understanding Callbacks, Anonymous Functions, and Closures in PHP
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Feb 4, 2024 · Backend Development

How to Orchestrate Parallel and Dependent Tasks with AsyncTool

This article introduces AsyncTool, a Java concurrency framework that enables flexible parallel, serial, dependent, and callback‑driven task orchestration, explains its core components (worker, callback, wrapper), and provides multiple code‑first examples illustrating complex workflow compositions.

AsyncParallel Executioncallback
0 likes · 9 min read
How to Orchestrate Parallel and Dependent Tasks with AsyncTool
php Courses
php Courses
Jan 26, 2024 · Backend Development

Using PHP's array_walk() Function: Syntax, Basic and Advanced Examples

This article explains PHP's array_walk() function, detailing its syntax, parameters, and demonstrating basic usage for element transformation, advanced techniques with userdata, and integration with class methods, while providing practical code examples and real‑world application scenarios.

Backendarray_walkcallback
0 likes · 6 min read
Using PHP's array_walk() Function: Syntax, Basic and Advanced Examples
php Courses
php Courses
Jan 3, 2024 · Backend Development

PHP array_udiff() Function: Syntax, Parameters, Usage, and Example

array_udiff() is a PHP function that compares values of two or more arrays using a user-defined callback, returning the differences; this article explains its syntax, parameters, performance considerations, practical scenarios, and provides a complete code example demonstrating how to identify elements present in one array but not another.

Backendarray comparisonarray_udiff
0 likes · 3 min read
PHP array_udiff() Function: Syntax, Parameters, Usage, and Example
php Courses
php Courses
Nov 10, 2023 · Backend Development

Using PHP's array_map() Function: Syntax, Examples, and Summary

This article explains PHP's array_map() function, detailing its syntax, parameters, and usage through practical examples with both named and anonymous callbacks, demonstrating how to transform arrays efficiently and shows the resulting output for verification.

Code ExamplePHParray_map
0 likes · 5 min read
Using PHP's array_map() Function: Syntax, Examples, and Summary
php Courses
php Courses
Nov 6, 2023 · Backend Development

Understanding Callback Functions in PHP

This article explains PHP callback functions, covering their definition through anonymous functions and function name strings, demonstrates implementation as function parameters and class methods with code examples, and discusses common use cases such as event handling, asynchronous operations, and array sorting or filtering.

Class MethodPHPanonymous function
0 likes · 5 min read
Understanding Callback Functions in PHP
php Courses
php Courses
Aug 16, 2023 · Backend Development

Implementing Alipay Asynchronous and Synchronous Callbacks in PHP

This article explains the roles of Alipay's asynchronous and synchronous callbacks in PHP integration, outlines step‑by‑step processing procedures, and provides complete example code for verifying signatures, updating order status, and handling both server‑side notifications and front‑end return pages.

AlipayBackendPHP
0 likes · 7 min read
Implementing Alipay Asynchronous and Synchronous Callbacks in PHP
php Courses
php Courses
Jun 28, 2023 · Backend Development

Integrating PHP with WeChat Work: Step-by-Step Guide

This guide explains how to integrate PHP with WeChat Work by registering a corporate account, creating an application, obtaining credentials, using PHP’s HTTP requests to acquire access tokens, and sending messages or retrieving user data, including a complete code example.

APIBackend IntegrationMessaging
0 likes · 4 min read
Integrating PHP with WeChat Work: Step-by-Step Guide
IT Services Circle
IT Services Circle
Sep 24, 2022 · Fundamentals

Understanding Function Pointers, Closures, and std::function in C/C++

This article explains how C/C++ function pointers work, demonstrates their compiled address, shows why they lack context, introduces a closure struct to bundle code with data, and relates this pattern to C++'s std::function for storing callables with captured environment.

Function Pointerc++callback
0 likes · 6 min read
Understanding Function Pointers, Closures, and std::function in C/C++
Code Ape Tech Column
Code Ape Tech Column
Sep 24, 2021 · Backend Development

Implementing Message Confirmation in Spring Boot with RabbitMQ: Configuration, Callbacks, and Common Pitfalls

This article explains how to set up Spring Boot and RabbitMQ message confirmation, covering environment preparation, publisher and consumer callback implementations, acknowledgment methods, testing procedures, and practical pitfalls such as missed acknowledgments, infinite redelivery loops, and duplicate consumption.

MessageConfirmationMessagingRabbitMQ
0 likes · 13 min read
Implementing Message Confirmation in Spring Boot with RabbitMQ: Configuration, Callbacks, and Common Pitfalls
Senior Brother's Insights
Senior Brother's Insights
Feb 15, 2021 · Backend Development

Understanding Asynchronous Programming vs Multithreading in Java

This article explains the fundamentals of asynchronous programming and multithreading, compares their models with clear examples, discusses callbacks, highlights performance trade‑offs, and offers guidance on choosing the right approach for I/O‑heavy Java applications.

Spring Bootasynchronous programmingcallback
0 likes · 8 min read
Understanding Asynchronous Programming vs Multithreading in Java
php Courses
php Courses
Dec 21, 2020 · Backend Development

Understanding PHP preg_replace_callback and Using Anonymous Functions

This article explains the PHP preg_replace_callback function, its parameters, how to use anonymous functions as callbacks, and demonstrates passing extra arguments via globals or class properties with clear code examples.

anonymous functioncallbackpreg_replace_callback
0 likes · 4 min read
Understanding PHP preg_replace_callback and Using Anonymous Functions
Laravel Tech Community
Laravel Tech Community
Dec 7, 2020 · Backend Development

Using array_walk() with a User-Defined Callback Function to Process Each Array Element

array_walk() applies a user‑defined callback to each element of an array without affecting the internal pointer, accepting the array, a callable function, and optional userdata, returning TRUE on success; the article explains its parameters, behavior, and provides PHP code examples demonstrating typical usage.

Backendarray_walkcallback
0 likes · 3 min read
Using array_walk() with a User-Defined Callback Function to Process Each Array Element
Laravel Tech Community
Laravel Tech Community
Nov 27, 2020 · Backend Development

array_udiff_assoc() – Compute Array Difference with Index Check Using Callback Comparison

This article explains PHP’s array_udiff_assoc function, detailing its purpose of computing array differences with index checks using a user‑defined callback, describing its parameters and return value, and providing a complete example with class definition, custom comparison function, usage code, and resulting output.

ArrayBackendDifference
0 likes · 3 min read
array_udiff_assoc() – Compute Array Difference with Index Check Using Callback Comparison
Laravel Tech Community
Laravel Tech Community
Nov 18, 2020 · Backend Development

Using array_reduce() with a Callback to Reduce an Array to a Single Value

This article explains PHP's array_reduce() function, describing its parameters, behavior, and how a callback can iteratively process an input array to produce a single result, accompanied by example code demonstrating summation, multiplication, handling of empty arrays, and output inspection.

Backendarray reductionarray_reduce
0 likes · 3 min read
Using array_reduce() with a Callback to Reduce an Array to a Single Value
政采云技术
政采云技术
Nov 17, 2020 · Frontend Development

Writing High-Quality Maintainable Code: Asynchronous Optimization

This article explains the various asynchronous techniques in JavaScript—callback, Promise, async/await, and generator—compares them, and demonstrates practical patterns for handling callback hell, parallel and sequential async operations to write cleaner, more maintainable frontend code.

AsyncPromisecallback
0 likes · 10 min read
Writing High-Quality Maintainable Code: Asynchronous Optimization
php Courses
php Courses
Nov 10, 2020 · Backend Development

Common Pitfalls When Integrating WeChat Enterprise Callback with ThinkPHP

This article outlines three major pitfalls developers encounter when using ThinkPHP 3.2.3 with PHP 5.3 to handle WeChat enterprise callback decryption, and provides step‑by‑step solutions including library adjustments, constructor updates, signature handling, and output buffering cleanup.

EnterpriseWeChatcallback
0 likes · 4 min read
Common Pitfalls When Integrating WeChat Enterprise Callback with ThinkPHP
Laravel Tech Community
Laravel Tech Community
Nov 10, 2020 · Backend Development

Using array_map() to Apply a Callback Function to Array Elements

array_map() in PHP applies a user‑defined callback to each element of one or more arrays, returning a new array of the transformed values; the article explains its syntax, parameter requirements, return behavior, and provides multiple code examples demonstrating numeric, string, and mixed‑array usage.

BackendPHParray-manipulation
0 likes · 3 min read
Using array_map() to Apply a Callback Function to Array Elements
Alibaba Cloud Developer
Alibaba Cloud Developer
Sep 2, 2020 · Fundamentals

Mastering C++ Interfaces: Zero‑Overhead Techniques and Practical Patterns

This article explores various ways to implement interfaces in C++, comparing virtual functions, the Pimpl idiom, hidden subclasses, callback mechanisms, function pointers, std::function, member function pointers, and non‑intrusive traits, highlighting their trade‑offs in performance, binary compatibility, and design flexibility.

Interfacec++callback
0 likes · 13 min read
Mastering C++ Interfaces: Zero‑Overhead Techniques and Practical Patterns
Programmer DD
Programmer DD
Jun 20, 2020 · Backend Development

Understanding Synchronous, Asynchronous Calls and Callbacks in Java

This article explains the differences between synchronous and asynchronous method calls, introduces callback mechanisms, and provides complete Java code examples for both sync and async callbacks, helping developers grasp how to design and implement these patterns in backend applications.

AsynchronousBackendDesign Patterns
0 likes · 14 min read
Understanding Synchronous, Asynchronous Calls and Callbacks in Java
Sohu Tech Products
Sohu Tech Products
Aug 7, 2019 · Frontend Development

Understanding JavaScript Promises: Concepts, API, and Practical Examples

This article explains JavaScript Promises, covering their purpose in avoiding callback hell, the core API (constructor, then, catch, static methods), practical code examples, chaining behavior, comparison with callbacks and async/await, and even a custom implementation, providing a comprehensive guide for frontend developers.

AsynchronousJavaScriptPromise
0 likes · 25 min read
Understanding JavaScript Promises: Concepts, API, and Practical Examples
Qunar Tech Salon
Qunar Tech Salon
Aug 1, 2018 · Frontend Development

Understanding JavaScript Asynchronous Patterns and Core Language Features for React Native Development

This article provides a comprehensive guide for mobile developers on JavaScript fundamentals such as callback hell, Promises, async/await, the arguments object, call and apply methods, mixins, and prototype inheritance, illustrating each concept with clear explanations and practical code examples to improve React Native coding practices.

AsyncCallApplyJavaScript
0 likes · 16 min read
Understanding JavaScript Asynchronous Patterns and Core Language Features for React Native Development
JD Tech
JD Tech
Jun 28, 2018 · Backend Development

Asynchronous Programming and Promise Patterns in Backend Systems

This article introduces the concepts of synchronous versus asynchronous calls, explains the challenges of RPC services in large-scale systems, and provides detailed guidance on using polling, callbacks, futures, and CompletableFuture in Java to implement efficient, non‑blocking backend architectures with practical code examples.

BackendFuturePromise
0 likes · 18 min read
Asynchronous Programming and Promise Patterns in Backend Systems
Java Captain
Java Captain
Mar 25, 2018 · Fundamentals

Understanding Java Callback Mechanism Through a Classroom Analogy

This article explains the Java callback mechanism step by step using a kindergarten story, showing how simple addition can evolve into interface‑based callbacks with a SuperCalculator, and demonstrates the pattern with concrete Student, Calculator, Seller, and doJob implementations.

DesignPatternOOPcallback
0 likes · 13 min read
Understanding Java Callback Mechanism Through a Classroom Analogy
Java Captain
Java Captain
Nov 30, 2017 · Fundamentals

Module Interaction: Synchronous, Asynchronous, and Callback Calls in Java

This article explains the three main ways modules can call each other—synchronous calls, asynchronous calls, and callbacks—illustrates each with Java code examples, and discusses when to use each approach for flexible and non‑blocking program design.

AsynchronousDesign PatternsSynchronous
0 likes · 10 min read
Module Interaction: Synchronous, Asynchronous, and Callback Calls in Java
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Nov 11, 2017 · Fundamentals

Mastering the Observer Pattern: From Theory to Android Implementation

This article explains the Observer pattern’s one‑to‑many dependency concept, outlines its key components, provides a step‑by‑step Java implementation—including a custom news provider and user observer—demonstrates usage with JDK’s built‑in classes, and connects the pattern to Android callbacks.

AndroidObserver Patterncallback
0 likes · 9 min read
Mastering the Observer Pattern: From Theory to Android Implementation
Hujiang Technology
Hujiang Technology
Nov 1, 2017 · Backend Development

Understanding and Implementing Promisify in JavaScript

Promisify converts Node‑style callback functions into Promise‑based ones by ensuring the callback is the last argument and its first parameter is an error, enabling cleaner asynchronous code with examples, implementation details, and optimizations for JavaScript developers.

AsynchronousJavaScriptNode.js
0 likes · 5 min read
Understanding and Implementing Promisify in JavaScript
ITPUB
ITPUB
May 5, 2017 · Backend Development

Understanding Synchronous, Asynchronous, and Callback Calls in Java

The article explains three module invocation methods—synchronous, asynchronous, and callback—detailing their mechanisms, advantages, and trade‑offs, and provides a complete Java example where a teacher asks a student a question and receives the answer via a callback interface, illustrating both synchronous and asynchronous scenarios.

AsynchronousDesign PatternsModule Interaction
0 likes · 10 min read
Understanding Synchronous, Asynchronous, and Callback Calls in Java