oop
34 postsSOLID Principles6-part series
Asked at Amazon, Google, Microsoft +3
·4 min read
Single Responsibility: One Reason to Change, One Owner
Asked at Amazon, Google, Microsoft +3
·7 min read
Open/Closed: Add a Channel Without Touching the Core
Asked at Amazon, Google, Microsoft +3
·7 min read
Liskov Substitution: If Clients Must Check the Type, You Broke It
Asked at Amazon, Google, Microsoft +3
·8 min read
Interface Segregation: Don't Make Callers Depend on What They Don't Use
Asked at Amazon, Google, Microsoft +3
·7 min read
Dependency Inversion: Point the Arrow at an Abstraction
Asked at Amazon, Google, Microsoft +3
·8 min read
Creational Design Patterns6-part series
Creational Patterns: Who Decides What Gets Built
Asked at Amazon, Google, Microsoft +3
·5 min read
Factory Method: Let the Subclass Decide What to Build
Asked at Amazon, Google, Microsoft +2
·17 min read
Abstract Factory: Ship a Whole Family, Never a Mismatched Pair
Asked at Amazon, Google, Microsoft +2
·16 min read
Builder: Assemble Complex Objects Without the Telescoping Constructor
Asked at Amazon, Google, Microsoft +2
·17 min read
Prototype: Clone a Ready-Made Object Instead of Rebuilding It
Asked at Amazon, Google, Microsoft +2
·17 min read
Singleton: One Instance, and the Global It Smuggles In
Asked at Amazon, Google, Microsoft +2
·20 min read
Structural Design Patterns8-part series
Structural Patterns: Composing Objects Into Bigger Things
Asked at Amazon, Google, Microsoft +3
·8 min read
Adapter Pattern: Make Two Interfaces That Weren't Built to Talk, Talk
Asked at Amazon, Stripe, Uber +2
·16 min read
Decorator Pattern: Stack Behavior at Runtime Without a Subclass Bomb
Asked at Amazon, Google, Microsoft +2
·14 min read
Facade Pattern: One Door Into a Room Full of Machinery
Asked at Amazon, Google, Microsoft +3
·14 min read
Proxy Pattern: The Stand-In Your Code Can't Tell Apart
Asked at Amazon, Google, Microsoft +3
·14 min read
Composite Pattern: One size() Call for a File or Ten Thousand
Asked at Amazon, Google, Microsoft +2
·15 min read
Bridge Pattern: When Two Things Vary, Stop Multiplying Them
Asked at Amazon, Google, Microsoft +3
·14 min read
Flyweight: One 'e' for a Million Letters
Asked at Google, Microsoft, Adobe +3
·14 min read
Strategy Pattern: Swap Behavior Without Touching the Caller
Asked at Amazon, Google, Microsoft +2
·14 min read
Behavioral Design Patterns11-part series
Behavioral Patterns: How Objects Talk and Decide
Asked at Amazon, Google, Microsoft +3
·8 min read
Observer Pattern: Broadcast State Without Knowing Who's Listening
Asked at Amazon, Google, Microsoft +3
·15 min read
Command Pattern: Make a Request Something You Can Hold in Your Hand
Asked at Amazon, Google, Microsoft +3
·15 min read
State Pattern: Make Illegal Transitions Impossible
Asked at Amazon, Google, Microsoft +2
·16 min read
Template Method: Freeze the Recipe, Swap the Ingredients
Asked at Amazon, Google, Microsoft +2
·15 min read
Iterator Pattern: Walk a Collection Without Knowing Its Shape
Asked at Amazon, Google, Microsoft +2
·16 min read
Mediator Pattern: Turn a Mesh of Dependencies Into a Star
Asked at Google, Microsoft, Meta +3
·15 min read
Memento Pattern: Undo Without Cracking the Object Open
Asked at Microsoft, Google, JetBrains +3
·14 min read
Chain of Responsibility: Let the Request Find Its Own Handler
Asked at Amazon, Google, Microsoft +3
·15 min read
Visitor Pattern: Add Operations Without Editing the Classes
Asked at Google, Microsoft, Amazon +3
·15 min read
Interpreter Pattern: When Your Config Grows a Grammar
Asked at Google, Amazon, Microsoft +2
·15 min read
Designing Tic-Tac-Toe: A Low-Level Design Walkthrough
Asked at Google, Amazon, Microsoft +3
·20 min read
Designing a Parking Lot: A Low-Level Design Walkthrough
Asked at Google, Amazon, Microsoft +3
·30 min read