Guides
How to learn programming by building real things, the concepts behind the projects, and the Python you need for them. Free to read, no account needed.
Learn by building
Project-based learning, project ideas for every level, and the everyday skills of the job: tickets, design notes and code review.
- Project-based learning for programming: how to learn to code by buildingWhy building real projects teaches programming faster than tutorials and puzzles, how to choose the right project for your level, and how to structure the work like a job.
- LeetCode alternatives: how to become job-ready, not just interview-readyCoding puzzles train one skill. Here's what else the job needs, how to practise it, and how to balance interview prep with real project work.
- How to escape tutorial hell and start building on your ownStuck watching tutorials but unable to build anything alone? Why it happens, and a step-by-step way out using small projects with tests and a clear definition of done.
- Portfolio projects that impress employers (and how to present them)What hiring managers look for in a developer portfolio, which kinds of projects show it, and how to present them: README, tests, design notes and a clean history.
- How to work with tickets and acceptance criteria as a junior developerHow to read a ticket, find what it doesn't say, ask good questions, and turn acceptance criteria into tests, with examples from realistic product tickets.
- How to write a design doc: a short guide for junior developersWhat a design document is for, a half-page template (components, data structures, trade-offs, open questions) and a worked example, before you write any code.
- Code review checklist for junior developersWhat senior engineers look for in a code review, as a practical checklist: correctness, edge cases, tests, naming, structure and performance, with C++-specific points.
Python handbook
The Python the projects use, explained with small examples: dataclasses and enums, testing with pytest, files and CSV, databases and web APIs.
- Python dataclasses, enums and datetimes: modelling a business domainModel real business data in Python with dataclasses, frozen value objects, StrEnum for fixed choices, type hints checked by mypy, and timezone-aware datetimes.
- Testing with pytest: run, read and write Python testsHow to run pytest, read a failing test, select tests with markers and -k, share setup with fixtures, cover many cases with parametrize, and test exceptions.
- Reading files and CSV in Python: paths, encodings and DictReaderOpen files safely with pathlib and with, choose the right encoding, handle Excel's byte order mark and decimal commas, and read CSV exports with csv.DictReader.
Concepts and algorithms
The ideas behind the projects, in any language: parsing, state machines, intervals, graphs, dynamic programming, hashing, invariants and cost.
- Invariants and all-or-nothing updates: keeping data consistentName the rules your data must always obey, enforce them in one place, validate everything before changing anything, keep history append-only, and test invariants with random operations.
- Big-O in practice: amortised cost, worst cases and memoryWhat Big-O tells you on the job: the costs of common operations, amortised O(1), inputs that trigger the worst case, memory as a cost, and when to measure instead of guessing.
- State machines in practice: transition tables, guards and event logsModel order statuses, CSV quoting and regex matching as state machines: one transition table, guards for business rules, event logs you can replay, and NFAs that track several states.
- Recursive descent parsing: tokenizers, grammars and precedenceHow to parse formulas, JSON and patterns by hand: split input into tokens, write the grammar down, turn each rule into a function, handle precedence, and report exact error positions.
- Working with intervals: half-open ranges, overlaps, merging and gapsBookings, shifts, diff hunks and time slots are intervals. Use half-open ranges, test overlap with one comparison, check clashes in O(log n), merge overlapping intervals and find free gaps.
- Hashing in practice: hash functions, sets and consistent hashingWhat a hash function does, how hash sets give fast lookups, why hash mod n reshuffles everything when servers change, and how a consistent hash ring with virtual nodes fixes it.
- How undo and redo work: the command pattern, step by stepBuild undo and redo the way editors do: edits as reversible commands, an undo and a redo stack, merging typing into words, grouping edits into one step, and a capped history.
- Graphs and shortest paths: adjacency lists, BFS and DijkstraRepresent a road network as a graph, find shortest routes with breadth-first search and Dijkstra's algorithm, rebuild the route from predecessors, and search every order of stops.
- Dynamic programming on real problems: diffs and edit distanceDynamic programming explained with the problems it solves in real tools: the longest common subsequence behind diff, edit distance behind 'did you mean', and how to keep memory down.
- Validating input: check once at the boundary, then trust your typesWhere to validate data, how to report every problem at once with field paths, and how to write error messages people can act on. With examples in Python.
- Money and units in code: whole cents, whole grams, no floating pointWhy 0.1 + 0.2 isn't 0.3, how to store money and measurements as integers, and how to round up and round half up with integer arithmetic only.