1. Law of Demeterhistorical

    The Law of Demeter asks a class to know as little as possible about other objects' internals, reducing coupling.

  2. Composition Reuse Principlehistorical

    Composite reuse favors composition or aggregation over inheritance. These notes examine code reuse and extension through that principle.

  3. Object-Oriented Design Principleshistorical

    Object-oriented design principles aim to improve maintainability, extensibility, and reuse. This page links notes on the individual principles.

  4. Object-Oriented Design Patternshistorical

    Design patterns are reusable solutions to recurring problems. These notes organize patterns into creational, structural, and behavioral categories.

  5. Singleton Patternhistorical

    The singleton pattern restricts a class to one instance. Implementation examples examine how that instance is created and accessed.

  6. Proxy Patternhistorical

    The proxy pattern adds functionality through a proxy object without mixing unrelated logic into business code. These notes record implementations through examples.

  7. 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.

  8. 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.

  9. State Patternhistorical

    The state pattern chooses behavior according to an object's current state. These notes compare it with the strategy pattern through examples.

  10. Builder Patternhistorical

    The builder pattern assembles objects with multiple parts and complex construction steps, using a builder to organize construction.