Lessons
63 lessons in programming · intermediate · page 1 of 3
Learning paths in programming
Browse all paths- Programmingintermediate
Building Software with AI Agents: Spec, Verify, Secure
Coding agents write code fast; the engineering is in everything around it. This three-lesson path makes agent-written software trustworthy. Turn a vague request into a spec with testable EARS requirements and traceable tasks. Verify the result with checks an agent cannot quietly game: frozen tests, property tests and mutation testing. Then secure it against risks specific to generated code: insecure defaults, hallucinated packages, poisoned repo context and leaked secrets. You finish with a review checklist for your next pull request.
3 lessons · certificate - Programmingintermediate
Performance Profiling: Finding the Bottleneck That Matters
Most optimisation effort goes into code that was never the problem, because intuition about where time goes is reliably wrong. This path builds the discipline instead: the arithmetic that caps what any optimisation can buy, how profilers work and how to read a flame graph, the six causes behind almost all real slowness, and how to benchmark honestly and recognise the point where optimising stops paying.
4 lessons · certificate - Programmingintermediate
Deployment Strategies: Shipping Without Breaking Things
A deploy replaces a working system with a different one while people are using it. This path covers how teams make that routine: the four strategies as answers to how many users meet a bad version, canary releases as controlled experiments, feature flags separating deploy from release, and the compatibility discipline that decides whether the rollback you are counting on actually works.
4 lessons · certificate - Programmingintermediate
Testing Strategy: What Is Worth Testing
Tests are a purchase, not a virtue: you spend writing time, run time and maintenance time to buy confidence about specific breakages. This path works out how to spend that budget. What each level of test can and cannot catch, how test doubles buy speed by trading away fidelity, how property-based testing finds the inputs you would never have imagined, and why flakiness destroys a suite faster than any missing test.
4 lessons · certificate - Programmingintermediate
Observability: Knowing Why Production Is Slow
Monitoring answers the questions you wrote down in advance; production fails in ways you did not. This path builds observability from its raw materials: the three telemetry signals and their very different bills, the percentile and cardinality arithmetic that decides what your data can honestly say, tracing and the craft of throwing spans away, and the SLO machinery that turns reliability into a number a team can actually spend.
4 lessons · certificate - Programmingintermediate
Building an AI QA Function
Software QA assumes a specification, deterministic behaviour, and a system that changes only when you change it. An AI feature violates all three, and a provider updating a model shifts behaviour with no commit for your pipeline to catch. This cursus covers what replaces the old practice: characterising a distribution rather than asserting correctness, the evaluation set as the function's real asset, a release gate with thresholds set before results are seen, and how to stand the function up in ninety days without it quietly dying.
3 lessons · certificate
Individual lessons
- Programmingintermediate
Securing AI-Generated Code: Insecure Defaults, Phantom Packages, Poisoned Context
Generated code that works is often not code that is safe. Learn what studies show about vulnerabilities in AI-written code, how hallucinated package names become a supply-chain attack, how hidden instructions hijack agents, and the controls that catch each risk.
10 steps·~15 min - Programmingintermediate
Verifying Agent-Written Code: When Passing Tests Is Not Proof
A green test suite is the agent's claim, not your proof. Learn the documented ways coding agents game tests, the controls that measurably reduce it, and a layered verification stack: frozen tests, property-based tests, mutation testing and diff review.
10 steps·~15 min - Programmingintermediate
Spec-Driven Development: Writing the Contract an AI Agent Builds To
Coding agents fill every gap in a request with a guess. Learn how spec-driven development closes those gaps with testable EARS requirements, a technical plan and small traceable tasks, and how to tell when the method earns its overhead.
10 steps·~15 min - Programmingintermediate
Benchmarks That Hold Up, and Knowing When to Stop
A benchmark is an experiment, and most are badly designed enough to produce confident wrong answers. This lesson covers what a measurement must control to mean anything, the ways microbenchmarks lie including code the compiler deletes, how to catch regressions in continuous integration despite noisy machines, and how to recognise the point where optimising stops paying.
7 steps·~11 min - Programmingintermediate
Where Time Actually Goes: The Six Usual Suspects
Slow software is slow for a short list of reasons, and each one has a signature you can recognise before you find the code. This lesson covers the six recurring bottleneck classes, waiting on I/O, chatty queries, allocation pressure, lock contention, memory access patterns and serialisation, with the symptom that identifies each and the fix that actually works.
7 steps·~11 min - Programmingintermediate
How Profilers Work, and How to Read a Flame Graph
A profiler is not a neutral observer: sampling and instrumentation see different things, distort the program in different ways, and answer different questions. This lesson covers how each works, why CPU time and wall-clock time give opposite answers, and how to read a flame graph correctly, including the axis that means nothing and is misread constantly.
7 steps·~11 min - Programmingintermediate
Measure First: The Arithmetic That Decides What to Optimise
Most optimisation effort is spent on code that was never the problem, and the reason is that intuition about where time goes is reliably wrong. This lesson covers why guessing fails, the arithmetic that caps what any optimisation can buy, the difference between latency and throughput, and how to set a target that tells you when to stop.
7 steps·~11 min - Programmingintermediate
Canary Releases: Deciding With Evidence Instead of Nerve
A canary release sends a slice of real traffic to a new version and asks whether it is healthy. This lesson covers what to measure, why comparing the canary against the current version beats comparing against history, the statistics problem that makes small canaries weak evidence, and how automated promotion and rollback turn a judgement call into a rule.
7 steps·~11 min - Programmingintermediate
Why Deploys Break Things, and the Strategies That Answer It
Deploying is the moment a working system is replaced by a different one while people are using it. This lesson covers what actually goes wrong at that moment, the research finding that shipping fast and shipping safely are not opposites, and the four deployment strategies as answers to one question: how many users meet a bad version before you find out.
7 steps·~11 min - Programmingintermediate
Making Rollback Possible: The Changes That Cannot Be Undone
Every deployment strategy assumes you can go back, and that assumption is the one most often false when it matters. This lesson covers what actually makes a rollback work, the database migration pattern that keeps schema changes reversible, the one-way doors that no amount of tooling can undo, and how to tell which kind of change you are about to ship.
7 steps·~11 min - Programmingintermediate
Feature Flags: Separating Deploy From Release
A feature flag turns shipping code and exposing behaviour into two independent decisions, which is what lets a team deploy continuously while releasing on someone else's schedule. This lesson covers the four kinds of flag and their very different lifespans, the debt they accumulate, and the discipline that keeps a flag system from becoming untestable.
7 steps·~11 min - Programmingintermediate
Flakiness, Coverage, and Suites That Survive
A test suite is a product with a maintenance cost, and two forces decide whether it stays useful: flakiness, which destroys the signal, and the metrics teams use to judge it, which mostly measure the wrong thing. This lesson covers where flakiness comes from, the arithmetic that makes it fatal at scale, what coverage research actually found, and what to measure instead.
8 steps·~12 min - Programmingintermediate
Property-Based Testing: Assert the Law, Not the Example
An example-based test checks the cases you thought of, which is exactly the set that excludes your bugs. Property-based testing inverts it: state a law the code must obey for all inputs, let the machine hunt for a counterexample, and let it shrink that counterexample to something you can read. This lesson covers the property patterns, generators, shrinking, and where the technique stops fitting.
7 steps·~11 min - Programmingintermediate
Test Doubles: Isolation and What It Costs
Replacing a real dependency with a stand-in is what makes a unit test fast, deterministic, and able to reach states you cannot otherwise produce. It is also how a suite ends up green while the system is broken. This lesson covers the five kinds of double, when each is right, and the two failure modes that follow every team who reaches for mocks by reflex.
8 steps·~12 min - Programmingintermediate
What Is Worth Testing, and the Shape That Follows
Every test costs time to write, time to run, and time to maintain when the code moves. This lesson works out what that budget should buy: what each level of test can and cannot catch, why the pyramid has the shape it does, why some teams invert it, and the arithmetic that decides both questions before anyone argues about it.
8 steps·~12 min - Programmingintermediate
SLOs and Error Budgets: Turning Reliability Into a Number
How reliable should the service be? Wrong question: the right one is how much unreliability you can afford, spent deliberately. This lesson builds the SLI, SLO and error budget machinery from Google's SRE practice, does the arithmetic of nines, explains burn-rate alerting, and shows why 100 percent is the wrong target.
7 steps·~11 min - Programmingintermediate
Distributed Tracing and the Art of Throwing Data Away
Tracing every request through every service produces the most useful telemetry you have and more of it than anyone can afford. This lesson covers how context propagation actually stitches a trace together, the head versus tail sampling decision and why it determines which incidents you can debug, and the collector pipeline where all of it is enforced.
7 steps·~11 min - Programmingintermediate
Percentiles and Cardinality: The Two Numbers That Run Your Bill
Two pieces of arithmetic decide whether your telemetry is useful and affordable. Percentiles, because averages hide exactly the users who are suffering, and you cannot average a p99. Cardinality, because metric cost is not per event but per label combination, and one careless label can multiply your bill by the size of your user base. This lesson does both mechanisms by hand.
7 steps·~11 min - Programmingintermediate
Metrics, Logs, Traces: Three Signals, Three Cost Models
Observability is not a product you buy but a property your system has: can you explain a behaviour you did not predict? This lesson defines the three telemetry signals, what question each answers, why their costs grow along completely different axes, and why the difference between monitoring and observability is the difference between known and unknown failure modes.
8 steps·~12 min - Programmingintermediate
A Container Is Not a Thing
There is no container object in the Linux kernel, no container system call, and no container data structure. A container is an ordinary process started with several isolation features switched on at once. This lesson establishes what those features are, what the word actually names, and why the distinction changes how you reason about them.
8 steps·~12 min - Programmingintermediate
The Object Database: Git Is a Content-Addressed Store
Git is usually taught as a set of commands. Underneath it is a key-value store where the key is a hash of the content, and four object types built on that one idea. This lesson derives the hash by hand, shows what a commit actually contains, and explains why the design makes history tamper-evident.
8 steps·~12 min - Programmingintermediate
Goroutines: Concurrency Cheap Enough to Stop Counting
A thread costs enough that programs are architected around not having many. A goroutine costs little enough that the constraint disappears, which changes what designs are available. This lesson explains where the saving comes from, what the runtime scheduler does with them, and what the abundance does not fix.
8 steps·~12 min - Programmingintermediate
Ownership: One Rule That Replaces the Garbage Collector
Every language must decide who frees memory and when. Rust answers with a rule enforced at compile time: each value has exactly one owner, and it is freed when that owner goes out of scope. This lesson builds the rule, shows what moving a value means, and explains what the approach buys and charges.
8 steps·~12 min - Programmingintermediate
Standing Up the Function: First Ninety Days and Beyond
An AI QA function has to be built while features are already shipping. This lesson covers the order of work that produces something useful fast, where the function should sit, how to handle a team that resists a new gate, what to measure about the function itself, and the failure modes that quietly end it.
8 steps·~12 min

