Applying Foundational Design Patterns in jQuery Development
Since its introduction in 2006, the jQuery library has dramatically simplified Document Object Model (DOM) traversal and manipulation. This ease of use fostered the development of web pages with increasingly complex user interactions, contributing to the web's evolution as a platform capable of supporting substantial application implementations ...
Posted on Sat, 03 Oct 2026 16:20:50 +0000 by Syntac
Vue Reactivity System Implementation
This article explains the Vue reactivity system through a simplified custom implementation. It covers four core classes: Subscriber, TemplateCompiler, Dependency, and ReactiveObserver, following the publish-subscribe pattern.
Core Classes
Subscriber: Observes data changes and executes callbacks.
TemplateCompiler: Parses the DOM, handles interp ...
Posted on Sat, 03 Oct 2026 16:13:59 +0000 by salomo
Observer Pattern in Software Design
Overview
The Observer Pattern, also known as the Publish-Subscribe Pattern, defines a one-to-many dependency between objects. When the state of a subject object changes, all dependent observers are automatically notified and updated. This behavioral pattern decouples the subject from its observers, enabling loose coupling through a message-broa ...
Posted on Tue, 01 Sep 2026 16:49:03 +0000 by DustParticle
Building a Mini Vue: Implementing Observer, Watcher, and Compiler
Vue's source code implements dependency collection using the Observer pattern. It involves three main classes:
Dep: Acts as the observable target. Every data property has a Dep instance containing a subs queue (short for subscribers) that holds all Watcher instances depending on the data. When data changes, dep.notify() is called to inform all ...
Posted on Mon, 24 Aug 2026 16:25:35 +0000 by rcoursey
Implementing the Observer Pattern for Real-time Stock Market Updates
The Observer pattern establishes a one-to-many dependency between objects. When the state of a single "subject" (the observable) changes, all registered "observers" are notified and updated automatically. This decoupling allows the subject to broadcast changes without needing to know the specific implementation details of it ...
Posted on Sun, 21 Jun 2026 17:34:08 +0000 by ntlab
Software Design Principles and Patterns
Software design patterns are a set of tried-and-tested code design experiences that are used repeatedly. They exist to promote reusable code, make code easier for others to understand, and ensure reliability. Good design leads to quality work. However, if certain design principles guide the software design process, our software can be refactore ...
Posted on Sat, 30 May 2026 18:51:17 +0000 by tjg73
Understanding and Implementing Django Signals
Introduction to the Signal Mechanism
Django includes a robust signal dispatcher that facilitates communication between different parts of the application. This mechanism operates on the Observer pattern (also known as Publish/Subscribe). It allows specific "sender" components to notify "receiver" components when a specific a ...
Posted on Sat, 23 May 2026 20:53:42 +0000 by pavanpuligandla