OOP, SOLID & Modelling for LLD

The four pillars used for protecting invariants rather than as textbook vocabulary, composition over inheritance, interfaces vs abstract classes in TypeScript and Java, every SOLID principle as violation → fix, UML relationships in ASCII, cohesion and coupling, value objects and aggregates, and designing for testability with NestJS providers.

About 100 minutes · 20 exam questions · 12 interview questions · 2 code labs

What you will learn

  1. The four pillars, done right: encapsulation is about invariants
  2. Composition over inheritance (and when inheritance is fine)
  3. Interfaces vs abstract classes — the TypeScript view and the Java view
  4. SRP and OCP — violation → fix
  5. LSP — substitutability is about behaviour, not signatures
  6. ISP and DIP — small interfaces, dependencies pointing inward
  7. UML class relationships in ASCII (and what each means in code)
  8. Cohesion, coupling, and the DRY / YAGNI / KISS trade-offs
  9. Immutability and value objects (Money done right)
  10. Domain modelling: entities, value objects and aggregates
  11. Designing for testability: DI, NestJS providers and fakes
  12. DDD vocabulary for LLD rounds: ubiquitous language, entities, value objects, aggregates and aggregate roots, repositories, domain events, bounded contexts, anti-corruption layer
  13. Clean, Hexagonal and Onion architecture: dependency rule, ports & adapters, use cases

Previous: From HLD to LLD: The Bridge & The Machine-Coding Round · Next: Design Patterns & Concurrency for LLD