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.
3 write-ups
| Title | Difficulty |
|---|---|
| Builder Pattern How the Builder pattern assembles objects with many optional parts into validated, immutable results, with an email example, a query builder walkthrough, Python alternatives and when not to use it. | |
| Factory Pattern How factories move the choice of which class to create into one place, covering the simple factory, the factory method and the abstract factory, with a notification walkthrough and when not to use them. | |
| Singleton Pattern How the Singleton pattern guarantees one instance, how to make lazy creation thread safe (locks, double-checked locking, the holder idiom), and why passing one instance in is usually better. |