Software Architecture & Engineering
77 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- Law of Demeterhistorical
The Law of Demeter asks a class to know as little as possible about other objects' internals, reducing coupling.
- Composition Reuse Principlehistorical
Composite reuse favors composition or aggregation over inheritance. These notes examine code reuse and extension through that principle.
- Object-Oriented Design Principleshistorical
Object-oriented design principles aim to improve maintainability, extensibility, and reuse. This page links notes on the individual principles.
- Object-Oriented Design Patternshistorical
Design patterns are reusable solutions to recurring problems. These notes organize patterns into creational, structural, and behavioral categories.
- Singleton Patternhistorical
The singleton pattern restricts a class to one instance. Implementation examples examine how that instance is created and accessed.
- Proxy Patternhistorical
The proxy pattern adds functionality through a proxy object without mixing unrelated logic into business code. These notes record implementations through examples.
- Template Methodhistorical
When an algorithm's overall steps are fixed but details vary, the template method keeps the process in a parent class and delegates variable parts to concrete implementations.
- Factory Methodhistorical
Factory methods delegate concrete-product creation to corresponding factories so callers depend on a creation interface. These notes compare them with simple factories through code.
- State Patternhistorical
The state pattern chooses behavior according to an object's current state. These notes compare it with the strategy pattern through examples.
- Builder Patternhistorical
The builder pattern assembles objects with multiple parts and complex construction steps, using a builder to organize construction.