7

Training Grounds

Master the fundamentals before entering the pattern arena.

4.1

OOP Core

Classes, objects, encapsulation, inheritance, polymorphism, and the building blocks of object-oriented design.

4.2

Abstract vs Concrete

Interfaces, abstract classes, contracts, structural typing, and 'program to an interface'.

4.3

Relationships

Is-a, has-a, composition, aggregation, dependency, delegation, and lifecycle ownership.

4.4

UML (Practical)

Reading and drawing class, sequence, and state diagrams. Whiteboard interview skills.

4.5

SOLID & Principles

SRP, OCP, LSP, ISP, DIP, DRY, KISS, YAGNI, coupling, cohesion, and composition over inheritance.

4.6

Dependency Concepts

Dependency injection, IoC, DIP, NestJS DI, service locator, and testability.

4.7

Design Vocabulary

Context, client, handler, subject, wrapper, delegation, and all the terms patterns use.

4.8

Anti-Patterns & Smells

God class, spaghetti if-else, primitive obsession, feature envy, anemic model, and how to fix them.

4.9

Process Skills

Turning requirements into entities, noun/verb extraction, CRC cards, choosing interfaces, interview trade-offs.

4.10

TypeScript for Design

Generics, discriminated unions, closures as strategies, NestJS decorators, functional alternatives.

4.11

Coupling vs Cohesion

Tight vs loose coupling, types of coupling, cohesion levels, and how interviewers judge your class design.

4.12

Concurrency Primitives

Mutex, semaphore, read-write lock, thread pool, producer-consumer — just enough to say 'I'd use a mutex here' confidently.

4.13

Interface Design

How to design clean class interfaces, when to split them, fat vs thin, and what interviewers judge in your method signatures.

4.14

Enums & Type Safety

State machines with enums, discriminated unions, exhaustive switches, and handling 'what if we add a new type?' gracefully.

4.15

Error Handling Strategies

Exceptions vs result types, where to catch, fail-fast, null returns vs Optional, and error propagation across layers.

4.16

Immutability & Value Objects

When to make things immutable, value objects vs entities, defensive copying, and why Money should never be a plain number.

4.17

Event-Driven vs Request-Response

When to use direct calls, callbacks, events, polling, or webhooks — conceptual foundation before Observer and Pub-Sub.

4.18

Data Modeling for LLD

Which fields go on which class, when to normalize in-memory models, and how interviewers judge your class diagrams.