Low-level design
Object-oriented design for interviews: the framework, design principles and patterns, concurrency, and problem breakdowns you can practice in the code runner.
Object-oriented design for interviews: the framework, design principles and patterns, concurrency, and problem breakdowns you can practice in the code runner.
7 write-ups
| Title | Difficulty |
|---|---|
| Strategy Pattern How the Strategy pattern replaces if/else chains on a type with swappable classes, with a ride fare example, a parking lot walkthrough, variations and when not to use it. | |
| Chain of Responsibility Pattern How the Chain of Responsibility pattern passes a request along a line of handlers, with an expense approval chain, an HTTP middleware walkthrough, variations and when not to use it. | |
| Command Pattern How the Command pattern turns actions into objects you can undo, redo, queue and log, with a text editor undo/redo example, a smart home scheduler walkthrough, variations and when not to use it. | |
| Iterator Pattern How the Iterator pattern separates walking a collection from storing it, with a playlist example, a paged API walkthrough, custom tree traversal, variations and when not to use it. | |
| Observer Pattern How the Observer pattern lets an object announce changes to listeners it doesn't know, with an inventory example, an auction walkthrough, an in-process event bus and its pitfalls. | |
| State Pattern How the State pattern turns an object with modes into one class per state, with a vending machine example, an ATM walkthrough, transition tables for order lifecycles and when not to use it. | |
| Template Method Pattern How the Template Method pattern fixes the steps of an algorithm in a base class and lets subclasses fill in the parts that vary, with a board game loop, a job runner walkthrough, variations and when not to use it. |