Concepts.

Learning track

Design Patterns

Reusable answers to recurring design problems.

Low-level patterns that shape classes and objects, and high-level patterns that shape whole systems, each shown as running code you can step through.

Start with The Four Pillars of OOP
13 modules · 93 topics 75 interactive 35 pattern cards ~14 hours

Part 1

Low-Level Design

Patterns in code: how classes and objects are created, composed and made to work together.

Behavioral Patterns

Who does what, and who tells whom

Patterns about responsibilities and communication between objects: swapping algorithms, reacting to events, and modelling state.

0/13
04.01

Strategy

Swap an algorithm at runtime behind one interface instead of a growing if/else chain.

Beginner 10m Interactive
04.02

Observer

Let many objects react when one changes, without the subject knowing who they are.

Beginner 11m Interactive
04.03

Command

Turn a request into an object you can queue, log, undo and redo.

Intermediate 11m Interactive
04.04

State

Let an object change its behavior when its internal state changes, as a clean state machine.

Intermediate 11m Interactive
04.05

Template Method

Fix the skeleton of an algorithm in a base class and let subclasses fill in the steps.

Beginner 9m Interactive
04.06

Chain of Responsibility

Pass a request along a chain of handlers until one deals with it: middleware and approval flows.

Intermediate 10m Interactive
04.07

Iterator

Walk a collection without exposing how it's stored, and why every language builds it in.

Beginner 8m Interactive
04.08

Mediator

Route communication through one hub so objects stop talking to each other directly.

Intermediate 9m Interactive
04.09

Memento

Capture and restore an object's state without breaking encapsulation: snapshots and undo.

Intermediate 9m Interactive
04.10

Visitor

Add new operations to a class hierarchy without changing the classes: double dispatch explained.

Advanced 12m Interactive
04.11

Interpreter

Represent a small language's grammar as classes and evaluate sentences in it.

Advanced 10m Interactive
04.12

Null Object

Replace null checks with an object that does nothing, safely.

Beginner 7m Interactive
04.13

Specification

Express business rules as small combinable objects: and, or, not.

Intermediate 9m Interactive

LLD Case Studies

Design the classes end to end

Interview-style low-level designs: requirements, entities, class diagram, the patterns that fit and why, then working code.

0/12
07.01

Design a Parking Lot

Spots, vehicles, tickets and payments: the classic LLD question with Strategy and Factory at its core.

Intermediate 18m
07.02

Design an Elevator System

Requests, schedulers and car state machines: State and Strategy working together.

Advanced 18m
07.03

Design a Vending Machine

Coins, products and dispensing modelled as a State machine.

Intermediate 14m
07.04

Design a Library Management System

Books, copies, members, loans and fines, with Observer for reservations.

Intermediate 15m
07.05

Design Splitwise

Expenses, split strategies and simplified debts between friends.

Advanced 17m
07.06

Design BookMyShow (Class Design)

Shows, seats, holds and bookings at class level, with concurrency-safe seat locking.

Advanced 17m
07.07

Design Snake & Ladder and Chess

Boards, pieces, moves and turns: modelling rules cleanly so new games are easy to add.

Intermediate 16m
07.08

Design a Rate Limiter (Class Design)

Pluggable token-bucket and sliding-window limiters behind one interface, thread-safe.

Intermediate 13m
07.09

Design an LRU Cache (Class Design)

A generic, thread-safe cache with pluggable eviction policies.

Intermediate 12m
07.10

Design a Logging Framework

Loggers, levels, formatters and appenders: Chain of Responsibility and Singleton in practice.

Intermediate 13m
07.11

Design a Notification Service (Class Design)

Channels, templates and user preferences with Observer, Strategy and Factory.

Intermediate 14m
07.12

Design an ATM

Cards, accounts, cash dispensing and transactions modelled as a State machine with Chain of Responsibility.

Intermediate 15m

Part 2

High-Level Design

Patterns for whole systems. Most are taught in full in the System Design track, so they appear here as short pattern cards that link to that lesson.

Data Management Patterns

Who owns the data, and how it stays right

Patterns for splitting, copying, caching and changing data across services without losing it or corrupting it.

0/11