LOAD-BEARINGfree
Tier 25 lessons, about 65 minutes of reading · checkpoint at the top

LLD Foundations

Low-level design. Classes, responsibilities, patterns and the concurrency bugs that hide inside a single service.

Units on this floor

  1. Responsibility and the one-reason test2.01 · 12 min

    We're zooming in. High-level design asks "which servers and databases?" Low-level design asks a smaller but equally hard question: inside one service, which objects exist, what does each…

  2. SOLID, with the refactor shown2.02 · 14 min

    SOLID is five design principles, and most explanations commit the same crime: they state each principle in abstract words and stop. "Classes should be open for extension but closed for…

  3. The patterns that actually show up2.03 · 14 min

    The famous Gang of Four book catalogued 23 design patterns. Here's the field report from actual interviews and actual codebases: six of them do almost all the work. Learn these six deeply…

  4. Composition over inheritance2.04 · 11 min

    Inheritance is usually the first "reuse" tool anyone learns, which is unfortunate, because it's also the tightest coupling that exists in object-oriented programming. Let's see why, watch…

  5. Concurrency: the double-booking bug2.05 · 14 min

    Almost every low-level design problem worth asking has a concurrency question hiding inside it, waiting for the follow-up: "...and what if two users do that at the same time?" Two people…