Tagged articles
40 articles
Page 1 of 1
Liangxu Linux
Liangxu Linux
Nov 22, 2025 · Fundamentals

How to Build a Scalable Embedded Power‑Management Framework with Observer and Responsibility Chains

This article explains how AIoT‑era embedded devices evolve from simple C/assembly code to reusable, portable frameworks by applying design patterns such as the Observer pattern and a custom responsibility‑chain model for low‑power management, complete with code examples, memory‑pool handling, and test cases.

AIoTC programmingDesign Patterns
0 likes · 16 min read
How to Build a Scalable Embedded Power‑Management Framework with Observer and Responsibility Chains
Lin is Dream
Lin is Dream
May 21, 2025 · Backend Development

Mastering Design Patterns for Scalable Middleware Services

This article explores how to apply core design patterns—Observer, Factory, Proxy, and Template Method—in Java middleware development, illustrating each pattern with practical code snippets and explaining the design rationale for building maintainable, extensible, and flexible services.

Backend DevelopmentFactory PatternObserver Pattern
0 likes · 8 min read
Mastering Design Patterns for Scalable Middleware Services
php Courses
php Courses
Jun 27, 2024 · Backend Development

Observer Design Pattern in Laravel: Concepts and Implementation

This article explains the Observer design pattern, its role in reducing coupling, and demonstrates how to implement it in Laravel using Eloquent model events, including creating observers, registering them, and practical use cases such as activity logging, email notifications, and slug generation.

Design PatternsEloquentLaravel
0 likes · 12 min read
Observer Design Pattern in Laravel: Concepts and Implementation
Sohu Tech Products
Sohu Tech Products
Mar 6, 2024 · Fundamentals

JavaScript Design Patterns: A Comprehensive Guide

This guide explains JavaScript design patterns—creational, structural, and behavioral—detailing common examples such as Singleton, Factory, Module, Decorator, Observer, Strategy, and more, and shows how applying these proven solutions can make code clearer, more flexible, maintainable, and scalable.

Behavioral PatternsCreational PatternsDesign Patterns
0 likes · 28 min read
JavaScript Design Patterns: A Comprehensive Guide
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jan 20, 2024 · Backend Development

Mastering Spring’s Event System: Decoupling, Asynchronous Handling, and Generic Events

This article explains Spring’s event mechanism, covering its observer‑based design, benefits such as decoupling and asynchronous handling, standard framework events, and advanced generic event techniques using subclassing or ResolvableTypeProvider to achieve type‑safe, flexible event publishing.

Backend DevelopmentGeneric TypesJava
0 likes · 7 min read
Mastering Spring’s Event System: Decoupling, Asynchronous Handling, and Generic Events
Test Development Learning Exchange
Test Development Learning Exchange
Sep 28, 2023 · Fundamentals

Observer Pattern and Publish‑Subscribe Pattern in Python with Practical Examples

This article explains the Observer and Publish‑Subscribe design patterns, compares their concepts and implementations, and provides ten practical Python code examples ranging from simple event notification to distributed messaging with libraries such as pubsub, redis, asyncio, Flask, threading, ZeroMQ, and PySide2.

Observer PatternPublish-Subscribeevent-handling
0 likes · 11 min read
Observer Pattern and Publish‑Subscribe Pattern in Python with Practical Examples
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Sep 20, 2023 · Fundamentals

Observer Design Pattern in Java: Concepts, UML, and Full Code Example

This article explains the Observer behavioral design pattern, describes its participants, illustrates a real‑world e‑commerce scenario, and provides complete Java code for the observer interface, subject interface, concrete subject, concrete observers, and a test client, concluding with the pattern’s benefits.

Design PatternsJavaObserver Pattern
0 likes · 7 min read
Observer Design Pattern in Java: Concepts, UML, and Full Code Example
37 Interactive Technology Team
37 Interactive Technology Team
Nov 21, 2022 · Mobile Development

Red Dot Counter Implementation in a Mobile App

The article explains how to implement a red‑dot badge system in the “玩心部落” mobile app using a tree‑structured RedPoint hierarchy combined with the Observer pattern, where each node tracks its count, notifies UI observers, propagates updates to parent nodes, and is managed centrally by a HeadRedPoint singleton for easy extension.

JavaMobile DevelopmentObserver Pattern
0 likes · 12 min read
Red Dot Counter Implementation in a Mobile App
Sohu Tech Products
Sohu Tech Products
Oct 19, 2022 · Fundamentals

Understanding the Observer Pattern with Go Code Examples

This article explains the Observer (publish‑subscribe) pattern, illustrates it with a humorous dialogue, provides complete Go interface and struct implementations for subjects and observers, shows sample client code and output, and discusses practical refactoring using the pattern for configuration changes.

GoObserver PatternPublish-Subscribe
0 likes · 8 min read
Understanding the Observer Pattern with Go Code Examples
Baidu Geek Talk
Baidu Geek Talk
Jul 7, 2022 · Fundamentals

Mastering the Observer Pattern: Real‑World Java and PHP Examples

This article explains the Observer design pattern, outlines its advantages and drawbacks, and demonstrates practical implementations through three real‑world scenarios—weather forecasting, payment processing, and data subscription—providing complete Java and PHP code samples that illustrate subjects, observers, and notification mechanisms.

Design PatternsJavaObserver Pattern
0 likes · 12 min read
Mastering the Observer Pattern: Real‑World Java and PHP Examples
Meituan Technology Team
Meituan Technology Team
Mar 10, 2022 · Backend Development

Design Patterns in Practice: Strategy, State, Observer, Builder, and Decorator Patterns

Through a teacher‑student dialogue, the article demonstrates how the Strategy (with Adapter), State, Observer, Builder, and Decorator patterns can be applied to reward distribution, task management, and activity modeling, illustrating how these patterns decouple logic, enhance extensibility, and improve code maintainability.

Builder PatternDecorator PatternDesign Patterns
0 likes · 24 min read
Design Patterns in Practice: Strategy, State, Observer, Builder, and Decorator Patterns
NiuNiu MaTe
NiuNiu MaTe
Jan 26, 2022 · Frontend Development

Master the Observer Pattern: A Fun Story‑Driven Front‑End Tutorial

Through a playful narrative featuring SpongeBob and a rival boss, this article explains the high‑frequency front‑end interview topic of the Observer pattern, illustrates its core concepts, shows one‑to‑many relationships, and provides a complete JavaScript implementation with clear code examples.

Front-endJavaScriptObserver Pattern
0 likes · 5 min read
Master the Observer Pattern: A Fun Story‑Driven Front‑End Tutorial
Su San Talks Tech
Su San Talks Tech
Nov 6, 2021 · Fundamentals

Unlock Cleaner Code: Master 6 Essential Design Patterns for Java Projects

This article introduces six classic design patterns—Strategy, Chain of Responsibility, Template Method, Observer, Factory, and Singleton—explaining their real‑world business scenarios, core principles, and providing clean Java implementations to help developers write more maintainable and extensible code.

Chain of ResponsibilityDesign PatternsFactory Pattern
0 likes · 25 min read
Unlock Cleaner Code: Master 6 Essential Design Patterns for Java Projects
Wukong Talks Architecture
Wukong Talks Architecture
Sep 29, 2021 · Fundamentals

Understanding the Observer Pattern through a Talk‑Show Analogy and Java Implementation

This article explains the Observer design pattern by comparing it to a talk‑show scenario, then details its Java implementation—including Observable and Observer classes, notification mechanisms, code examples, common pitfalls, asynchronous extensions, and practical e‑commerce applications—in a clear, step‑by‑step manner.

Design PatternsJavaObserver Pattern
0 likes · 10 min read
Understanding the Observer Pattern through a Talk‑Show Analogy and Java Implementation
Xianyu Technology
Xianyu Technology
May 27, 2021 · Backend Development

Understanding RxJava: Basics, Usage, and Thread Scheduling

RxJava brings reactive, event‑driven programming to Java by using Observables and Observers, offering operators, schedulers for thread control, and asynchronous, non‑blocking execution that avoids callback hell, improves performance, and fits UI events, I/O, RPC, and complex service orchestration, as demonstrated by Alibaba’s Xianyu.

AsynchronousJavaObserver Pattern
0 likes · 20 min read
Understanding RxJava: Basics, Usage, and Thread Scheduling
macrozheng
macrozheng
Apr 13, 2021 · Fundamentals

Master the Observer Pattern in Java: Theory, Code, and Real‑World Example

This article explains the Observer pattern, compares it with the Publish‑Subscribe model, showcases Java's built‑in Observable and Observer classes, provides complete code examples, and discusses practical considerations such as memory leaks and performance optimizations.

Design PatternsEvent-drivenJDK
0 likes · 10 min read
Master the Observer Pattern in Java: Theory, Code, and Real‑World Example
Programmer DD
Programmer DD
Sep 13, 2020 · Mobile Development

How iOS Implements Undo/Redo with Command & Observer Patterns

This article explains how iOS keyboards achieve undo and redo functionality by combining the Command and Observer design patterns, illustrates their class structures, and shows how the NSUndoManager leverages these patterns to manage undo and redo stacks in Cocoa Touch applications.

Command PatternDesign PatternsMobile Development
0 likes · 5 min read
How iOS Implements Undo/Redo with Command & Observer Patterns
Xueersi Online School Tech Team
Xueersi Online School Tech Team
Jul 3, 2020 · Frontend Development

Understanding Vue.js Dependency Collection and the Observer Pattern

This article explains how Vue.js implements its reactivity system using the observer pattern, detailing the roles of Dep and Watcher classes, the observe function, Object.defineProperty handling for objects and arrays, and providing annotated code examples to illustrate the complete dependency‑collection workflow.

Dependency CollectionObserver PatternReactivity
0 likes · 16 min read
Understanding Vue.js Dependency Collection and the Observer Pattern
JD Retail Technology
JD Retail Technology
Jun 23, 2020 · Mobile Development

Understanding and Implementing Key-Value Observing (KVO) in iOS

This article explains what Key-Value Observing (KVO) is, how to use it in iOS development, and the runtime mechanisms—such as isa‑swizzling and dynamic subclass creation—that enable automatic property change notifications, while also showing how to build a custom KVO system.

KVOMobile DevelopmentObjective‑C
0 likes · 7 min read
Understanding and Implementing Key-Value Observing (KVO) in iOS
iQIYI Technical Product Team
iQIYI Technical Product Team
Apr 10, 2020 · Mobile Development

iQIYI Knowledge Unified Audio‑Video Playback Architecture

iQIYI Knowledge’s universal audio‑video playback architecture decouples player, business logic, SDKs and page lifecycles via observer patterns and adapters, enabling seamless scene switching across multiple windows—including floating and short‑video panes—without interrupting playback, simplifying third‑party integration and reducing development overhead.

DecouplingObserver Patternaudio video
0 likes · 10 min read
iQIYI Knowledge Unified Audio‑Video Playback Architecture
Programmer DD
Programmer DD
Dec 14, 2018 · Backend Development

Build a Distributed Configuration Center with Spring Boot and the Observer Pattern

This tutorial walks through the design and implementation of a distributed configuration center using Spring Boot, demonstrating how to define configuration entities, apply the observer pattern for dynamic updates, and integrate a thread‑pooled scheduler to keep configuration in sync without restarting services.

Backend DevelopmentConfiguration CenterJava
0 likes · 19 min read
Build a Distributed Configuration Center with Spring Boot and the Observer Pattern
Suishouji Tech Team
Suishouji Tech Team
May 23, 2018 · Mobile Development

A Lightweight Event Bus for Android: Simplify Component Communication

This article introduces a lightweight event notification framework for Android, explaining its design, core interfaces, event manager implementation, usage examples with login/logout scenarios, lifecycle considerations, duplicate event checks, and compares it to traditional observer patterns.

AndroidKotlinObserver Pattern
0 likes · 10 min read
A Lightweight Event Bus for Android: Simplify Component Communication
Hujiang Technology
Hujiang Technology
Jan 16, 2018 · Frontend Development

Implementing Data Binding in JavaScript: Observer, Compiler, and ViewModel

This article explains the concept, purpose, and elements of data binding in JavaScript, describes view‑to‑model and model‑to‑view binding techniques such as publish‑subscribe, data hijacking and dirty checking, and provides a complete implementation using an Observer, a Compile engine, and a ViewModel to achieve automatic UI updates when the underlying data changes.

JavaScriptMVVMObserver Pattern
0 likes · 10 min read
Implementing Data Binding in JavaScript: Observer, Compiler, and ViewModel
Qunar Tech Salon
Qunar Tech Salon
Jan 5, 2018 · Frontend Development

Understanding Vue.js Data Observation, Reactivity, and Component Architecture

This article explains why Vue.js is chosen over other MVVM frameworks, details its data observer mechanism with source code examples, and demonstrates component-based architecture in a real-world project, highlighting Vue's reactivity, watcher system, and future prospects.

Component ArchitectureObserver PatternReactivity
0 likes · 14 min read
Understanding Vue.js Data Observation, Reactivity, and Component Architecture
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
Architecture Digest
Architecture Digest
Jul 31, 2017 · Fundamentals

Applying the Observer Pattern to Refactor Order Completion Logic

The article explains how introducing the Observer pattern into an order‑completion module improves code readability, separates responsibilities, and enhances extensibility by turning post‑order actions into independent observers that react to a single subject’s state change.

JavaObserver PatternSoftware Architecture
0 likes · 4 min read
Applying the Observer Pattern to Refactor Order Completion Logic
Java Backend Technology
Java Backend Technology
Dec 27, 2016 · Backend Development

How Tomcat Uses the Observer Pattern to Manage Its Lifecycle

This article explains how Tomcat leverages the Observer (publish/subscribe) pattern to manage component lifecycles, detailing the involved classes such as Lifecycle, LifecycleListener, LifecycleEvent, and their default implementations, and illustrates the process with diagrams and code snippets.

Backend DevelopmentJavaLifecycle
0 likes · 10 min read
How Tomcat Uses the Observer Pattern to Manage Its Lifecycle
Qunar Tech Salon
Qunar Tech Salon
Aug 30, 2016 · Mobile Development

Implementing an EventBus in Android Using Reflection

This article explains the concept of an EventBus as an observer‑pattern based communication mechanism for Android components, illustrates it with a newspaper subscription analogy, and provides step‑by‑step Java implementation details—including registration, unregistration, and posting of events using reflection—plus integration tips within an Activity lifecycle.

AndroidEventBusMobile Development
0 likes · 6 min read
Implementing an EventBus in Android Using Reflection
Tencent Music Tech Team
Tencent Music Tech Team
Apr 28, 2016 · Mobile Development

Understanding and Using EventBus 3 in Android: Setup, Core Architecture, Index Acceleration, and Best Practices

EventBus 3 provides a lightweight publish/subscribe framework for Android that simplifies inter‑module communication by allowing any object to be posted and received via @Subscribe methods, with optional index acceleration for faster registration, customizable thread modes, and guidance on setup, ProGuard rules, pitfalls, and alternatives.

AndroidAnnotation ProcessingEventBus
0 likes · 22 min read
Understanding and Using EventBus 3 in Android: Setup, Core Architecture, Index Acceleration, and Best Practices
21CTO
21CTO
Dec 1, 2015 · Big Data

How to Build a Real‑Time Price Update System for Billion‑Item E‑Commerce

This article explains the design of a distributed, real‑time price‑update service that handles massive product data, combines query‑driven crawling, observer‑pattern notifications, and multiple data sources to keep e‑commerce price and inventory information fresh within minutes.

Big DataObserver Patterndistributed architecture
0 likes · 14 min read
How to Build a Real‑Time Price Update System for Billion‑Item E‑Commerce
Qunar Tech Salon
Qunar Tech Salon
Apr 5, 2015 · Backend Development

Implementing Java Event Notification with the Observer Pattern: Common Pitfalls and Thread‑Safe Solutions

This article explains how to build a Java event‑notification system using the observer pattern, highlights typical mistakes such as concurrent modification and deadlocks, and presents several thread‑safe implementations ranging from synchronized blocks to CopyOnWriteArraySet and atomic primitives.

Observer PatternSynchronizationconcurrency
0 likes · 10 min read
Implementing Java Event Notification with the Observer Pattern: Common Pitfalls and Thread‑Safe Solutions