Software Architecture & Engineering
77 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- Functional Options Patternhistorical
The functional-options pattern supplies default configuration and changes selected properties through option functions. These notes examine that construction approach.
- Function Types as Interfaceshistorical
An interface function is a function type that implements an interface, allowing ordinary functions and struct implementations to participate in the same interface-based calls.
- Event Sourcinghistorical
Event sourcing persists data changes as events. These notes start with traditional CRUD limitations and examine recording state changes through events.
- Publish–Subscribe Patternhistorical
Publish-subscribe involves publishers, an event center, and subscribers. Subscribers register interest in events and receive messages through the event center.
- Producer–Consumer Patternhistorical
Producers place data in a queue and consumers retrieve it for processing. These notes introduce the producer-consumer pattern through those three roles.
- Open–Closed Principlehistorical
The open-closed principle favors extension without modifying existing code, reducing the risks introduced by maintenance changes.
- Liskov Substitution Principlehistorical
The Liskov substitution principle requires subclasses to preserve the meaning and expectations of parent-class methods. These notes examine inheritance and extension through it.
- Dependency Inversion Principlehistorical
Dependency inversion favors interfaces over implementations and avoids direct high-level dependence on low-level details. These notes examine extensibility through that principle.
- Single Responsibility Principlehistorical
The single-responsibility principle keeps a class's responsibilities focused. These notes examine readability and maintenance through that idea.
- Interface Segregation Principlehistorical
Interface segregation keeps interfaces focused on clear responsibilities. These notes examine decoupling and readability through that requirement.