New episode:Composite Pattern Explained: Files, Folders, and Trees
LearnwithManoj Never stop Learning. Subscribe

#structural-patterns

Patterns for composing classes and objects into larger structures while keeping the system flexible and efficient: Adapter, Bridge, Composite, Decorator, Facade, Flyweight, Proxy.

3 posts below, newest first.

  1. Composite Pattern Explained: Files, Folders, and Trees

    Show notes for the Composite Pattern video: when to use it, real-world examples (file systems, the DOM, React trees), and a code-free mental model.

  2. Bridge Pattern Explained - Kill the Class Explosion | 10/25

    Bridge Pattern - the fix for class hierarchies that explode into RedCircle, BlueCircle, RedSquare, BlueSquare.

  3. Adapter Pattern Explained - The USB Adapter of Code | 9/25

    Adapter Pattern - the software version of a USB-C to USB-A dongle. When two pieces of code need to talk to each other but their interfaces don't match, Adapter…

Subjects that frequently appear alongside #structural-patterns. Click through to see every post on each one.

  1. 3 posts

    #design-patterns

    The Gang-of-Four patterns reframed without the ceremony. When each pattern solves a real problem, when it is overkill, and the code smells that call for it.

  2. 3 posts

    #oop

    Object-oriented programming as a working tool: inheritance, composition, polymorphism, encapsulation, and where each one helps or gets in the way.

  3. 3 posts

    #software-engineering

    The craft of building software well: design, testing, refactoring, performance, security, tooling, and the trade-offs that aren’t in the Stack Overflow answer.