Primerian / Guided roadmap
A clear next step.
Strengthen your understanding of the languages, machinery, and engineering choices behind your code. Revisit a foundation or go straight into depth.
Choose an area to continue within it. Earlier lessons stay unread, and you can return to the full route at any time.
Checking your saved reading marks…
Stage 1
Fundamentals
Learn the rules behind values, calls, types, and errors. Follow the shared questions through each language’s own behavior.
Reading a program8 available
Check assumptions about source, execution and observable behavior across languages.
- 01From source to a running programYour build failed, but the preview still runs. Establish which source revision actually executed.
- 02Printing values and reading inputBlank strings, retained newlines and numeric prefixes: compare what the input APIs return, then format the result.
- 03Syntax and meaningSemicolons, newlines and braces can change which code runs. Separate accepted syntax from intended behavior.
- 04Expressions and statementsWhich pieces of code produce values, and which direct what happens next?
- 05Evaluation orderWhich part of an expression runs first? Follow precedence, associativity, and language-specific ordering rules.
- 06Tracing a small programTrack the next operation, current bindings, and visible output without skipping steps.
- 07Compile time and runtimeWhen is an error discovered? Distinguish checking and building a program from executing it.
- 08Observation and mental modelsWhat does an experiment actually establish? Separate observable behavior, a teaching diagram, and an implementation detail.
Values, names, and variables12 available
Follow declarations and assignments closely before treating a variable as a box in memory.
- 09What is a value?Explore numbers, booleans, text, and the types that determine which operations make sense.
- 10Declaration and initializationWhat exactly does declaring a variable establish? Compare introducing a name, choosing a type, and supplying a value.
- 11Assignment and reassignmentWhat changes when you assign again? Follow the binding and the value separately.
- 12Mutability and constantsDoes a constant name make the underlying object immutable? Compare rebinding with changing an existing value.
- 13Scope and shadowingWhich declaration does a name refer to here? Follow blocks, lexical scope, and a new binding with the same name.
- 14Copying, identity, and aliasingWhen two names start from the same value, what can they share? Compare independent values with shared mutable objects.
- 15Equality and comparisonWhen are two values “the same”? Compare value equality, identity, ==, ===, equals, Eq, and PartialEq.
- 16Destructuring and multiple bindingsHow do several names get values from one expression? Follow pattern binding and multiple assignment.
- 17TypeScript var, hoisting, and the temporal dead zoneWhy does reading a var early produce undefined while a let throws? Compare function-scoped var with block-scoped let and const.
- 18Go zero values and short declarationsWhen is a value supplied automatically, and when does := introduce a new binding? Follow useful zero values and accidental shadowing.
- 19Rust let, mut, and shadowingWhy is a Rust binding immutable unless marked mut, and how is shadowing different from mutation? Follow each new binding.
- 20C++ references, auto, and copiesWhen does a C++ name refer to an existing object, and when does auto quietly make a copy? Follow references, range-for loops and deduced returns.
Bits, numbers, and text7 available
Look beneath familiar values without assuming every language stores them in the same way.
- 21Bits, bytes, and binaryHow can a sequence of bits represent a number? Read binary, hexadecimal, and byte-sized groups.
- 22Integers, signs, and overflowWhat happens at the edge of a number range? Compare fixed-width, unsigned, and arbitrary-precision integers.
- 23Floating-point numbersWhy can a simple decimal calculation surprise you? Explore finite precision, rounding, NaN, and infinity.
- 24Masks, shifts, and bitwise operationsHow can one integer carry several flags? Compare operations on bits with boolean short-circuiting.
- 25Text, bytes, and UnicodeWhat are you counting when you ask for a string length? Distinguish bytes, code points, code units, and grapheme clusters.
- 26Absence, zero, and empty valuesAre no value, zero, false, and an empty collection interchangeable? Compare null, nil, Option, and Maybe.
- 27JavaScript numbers and BigIntWhat happens when every number is a double? Find the safe-integer limit, then compare number with bigint.
Decisions and repetition8 available
Use the values you understand to choose a path, repeat work, and reason about termination.
- 28Conditions and truthinessWhat can appear in a condition? Compare strict booleans, conversions, and truthiness rules.
- 29Short-circuit evaluationWhich expression is skipped by AND or OR, and can the result be something other than a boolean?
- 30Branches and pattern matchingHow does a program choose one case? Compare if, switch, and matching a value against a pattern.
- 31While loops and terminationWhat must change for this loop to stop? Trace the condition, body, and state at each iteration.
- 32For loops and iteration protocolsIs a for loop counting, reading a range, or asking an iterator for another value?
- 33Break, continue, and early returnWhere does execution go next? Follow exits from an iteration, a loop, and a function.
- 34Boundaries and loop invariantsWhat stays true as the loop runs? Use empty inputs and first/last iterations to uncover off-by-one mistakes.
- 35Go’s one loop and rangeHow does a single for keyword cover every loop? Follow range copies, per-iteration variables since Go 1.22, and ranging over maps.
Functions, calls, and closures10 available
Follow a call from argument evaluation to return, then explore the state a function can carry.
- 36What happens during a call?Follow argument evaluation, parameter binding, the body, and the return to the caller.
- 37Arguments, values, and referencesWhat does the callee receive, and which changes can the caller observe? Avoid reducing every language to one passing rule.
- 38Return values and multiple resultsWhere does the result go? Compare returned values, tuples, multiple results, and functions without an explicit return.
- 39Optional, default, and variadic parametersHow does one function accept different numbers of arguments? Compare defaults, rest parameters, varargs, and overloading.
- 40Call frames and the call stackWhat state must a call keep? Use a conceptual frame before inspecting a particular runtime.
- 41Recursion and the base caseHow do nested calls make progress and unwind? Follow each call separately and account for depth.
- 42Closures and captured variablesHow can a function use a name after its enclosing call returns? Compare capture rules and captured state.
- 43Side effects and pure functionsWhat changes besides the return value? Trace mutation, output, and dependencies on external state.
- 44Rust closure capture and Fn traitsDoes a closure borrow, mutate, or consume its environment? Connect Fn, FnMut, FnOnce, and move captures.
- 45TypeScript this and arrow functionsWhat determines this at a call site? Compare an ordinary function with an arrow that captures its enclosing this.
Collections and structured values9 available
Build larger values and learn what indexing, resizing, copying, and iteration really involve.
- 46Arrays, lists, and vectorsWhat stays fixed, and what can grow? Compare indexed collections, capacity, and resizing.
- 47Slices, views, and shared storageDoes selecting a range copy its elements or share their storage? Trace what happens when either side changes.
- 48Records, structs, and objectsHow are named fields grouped, and what does copying the containing value actually copy?
- 49Maps, dictionaries, and hashingHow is a key found? Connect equality and hash rules to insertion, lookup, and collisions.
- 50Sets and uniquenessWhat makes two entries the same? Explore equality, hashability, and the cost of membership checks.
- 51Ordering, sorting, and comparatorsWhat does a comparator promise? Follow ordering contracts, stable sorting, and the subtraction-overflow trap.
- 52Shallow and deep copyingWhich parts of a nested structure remain shared after a copy? Follow each level of the structure.
- 53Iterators, generators, and lazinessWhen is the next value computed? Compare eager collections with stateful or lazy iteration.
- 54Go slice headers, append, and capacityWhen do two slices share an array, and when can append change the storage relationship?
References and pointers3 available
Name the thing a value refers to, then follow how each language lets you reach and change it.
- 55References, pointers, and handlesWhat does a value that refers to something else contain? Compare object references, pointers, borrows, and languages that hide them.
- 56Pointers and dereferencingWhat does a pointer value refer to? Follow address-taking, dereferencing, null pointers, and pointer arithmetic boundaries.
- 57Changing a caller’s value through a pointerHow can a function update a variable it does not own? Compare pointer parameters, mutable borrows, and returning a new value.
Types and abstraction11 available
Describe the values an operation accepts and see how each language expresses a reusable contract.
- 58Static and dynamic type checksWhich checks happen before execution, and which depend on a running value? Compare what the checker can establish.
- 59Inference, coercion, and conversionHow is a type inferred, and when is a value converted? Separate implicit coercion from an explicit conversion.
- 60Constructors and creating valuesHow does a new value get its initial state? Compare constructors, struct literals, factory functions, and data constructors.
- 61Methods, receivers, and thisHow does a method get the value it operates on? Compare receivers, method binding, and calling conventions.
- 62Interfaces, traits, and type classesWhat does it mean to satisfy a contract? Compare the structural matching in TypeScript and Go with the trait implementations Rust asks you to write.
- 63Generics and type parametersHow can one operation work over several types while preserving useful constraints?
- 64Alternatives and combinationsHow do records and tagged variants describe different shapes of data? Explore products, unions, enums, and exhaustive handling.
- 65Dispatch, inheritance, and compositionWhich implementation runs for this call? Compare static selection, dynamic dispatch, and delegating to another value.
- 66TypeScript narrowing and discriminated unionsHow does a check refine the type of a value? Compare static narrowing with actual runtime validation.
- 67Go struct embedding and promoted methodsIs embedding inheritance? Follow promoted fields and methods, and see which receiver a promoted method actually gets.
- 68Rust traits, impl blocks, and deriveWhere do a type’s behaviors come from? Follow inherent impls, trait impls, derived traits, and the orphan rule.
Functional evaluation and effects6 available
Question familiar assumptions about mutation, function arguments, and the timing of work.
- 69Functions as values and higher-order operationsHow can a function accept behavior or return new behavior? Compare callbacks, closures, and function pointers.
- 70Map, filter, and reduceHow do you transform a collection without writing the loop? Compare each operation with the loop it replaces.
- 71Composition and data transformationHow do small transformations connect? Trace a pipeline and compare it with a sequence of mutations.
- 72Immutable updates and persistent dataHow do you “change” a value you never mutate? Follow copy-with-changes, structural sharing, and what stays shared.
- 73Rust iterators and adaptersWhy does map do nothing until something consumes it? Follow lazy adapters, collect, and borrowing during iteration.
- 74C++ ranges and viewsWhen does a view do its work, and what does it still refer to? Follow lazy views, re-reading transforms, dangling results and erase_if.
Modules, names, and visibility3 available
Organize definitions and make the boundary between public and private names explicit.
- 75Modules, packages, and namespacesWhere does a name belong? Compare translation units, modules, packages, and qualified names.
- 76Exports, visibility, and encapsulationWhich definitions are available outside a boundary? Compare exports, capitalization, pub, headers, and access modifiers.
- 77The standard library and third-party packagesHow do you use code you did not write? Find standard-library modules, add a dependency, and import it.
Errors and failure7 available
Follow what happens when a normal result is unavailable, and keep failure behavior explicit.
- 78Errors as values or exceptionsHow does a failed operation reach its caller? Compare return codes, error values, Result, and exceptions.
- 79Propagation and unwindingWhich calls are left behind when an error travels outward? Trace explicit propagation and stack unwinding.
- 80Cleanup on a failing pathWhich resources are still released when execution exits early? Follow cleanup through successful and failing paths.
- 81Panics, traps, and undefined behaviorWhat does the language promise after a bad operation? Distinguish defined failure, implementation choices, and undefined behavior.
- 82TypeScript catch, unknown, and thrown valuesWhy is a caught value unknown? Follow throwing non-Error values, narrowing in catch, and rejected promises.
- 83Go error values, wrapping, and errors.IsHow does an error carry context without losing its identity? Follow if err != nil, %w wrapping, and errors.Is and errors.As.
- 84Rust Result, ?, and panicWhat does ? do to the control flow and the error type? Compare recoverable Result with unwrap and panic.
Lifetimes, ownership, and cleanup6 available
Now ask who can use a value, how long it remains valid, and who is responsible for releasing resources.
- 85Scope is not lifetimeCan a value outlive a name, or a reference outlive its target? Separate visibility, validity, and reachability.
- 86Rust ownership and movesWho owns this value after an assignment or call? Follow moves and the distinction between Copy and Clone.
- 87Rust borrowing and referencesWhy can one use of a reference prevent another? Explore shared and exclusive borrows and the rules checked by the compiler.
- 88Rust lifetimes and relationshipsWhat does a lifetime annotation describe? Express relationships between references without treating it as a runtime timer.
- 89Resource cleanup and RAIIWhen should a file, lock, or connection be released? Compare Drop, defer, bracket, and try-with-resources.
- 90Rust Box, Rc, Arc, and interior mutabilityHow do allocation, shared ownership, and checked access differ? Follow which responsibility each wrapper carries.
Stage 2
Runtimes
Follow source into execution, meet the machine and operating system, inspect memory and evaluation, and understand the machinery that schedules your code.
The machine underneath4 available
Meet the hardware your program eventually runs on, without needing to build it.
- 91Booleans and logic gatesBuild AND, OR, NOT, and XOR truth tables, then connect boolean expressions to the idea of a logic gate.
- 92Instructions, registers, and the CPUWhat does a processor actually do? Follow fetch, decode, and execute, and the small set of operations everything reduces to.
- 93Registers, caches, and main memoryWhy is some memory faster than other memory? Compare the levels between a register and main memory, and what a cache miss costs.
- 94Reading a little assemblyWhat did the compiler turn this function into? Read a short listing and match it back to the source, without memorizing an instruction set.
Building and loading a program3 available
Follow dependencies, build inputs, and initialization before examining the generated program.
- 95Build commands and dependency resolutionWhat inputs does the toolchain need? Follow tsc, go, and Cargo.
- 96Imports, dependencies, and initializationWhat happens when a dependency is loaded? Compare dependency graphs, cycles, and initialization rules.
- 97Versions, lockfiles, and reproducible buildsWhy does the same project build differently on another machine? Follow version ranges, lockfiles, and pinned toolchains.
Your program and the operating system7 available
Follow what a running program asks the operating system for: memory, files, input, output, and an exit.
- 98Processes and address spacesWhat is a running program to the operating system? Follow a process, its own view of memory, and what separates it from others.
- 99Arguments, environment, and process startupWhat exists before main runs? Follow how arguments and environment variables reach a program, and what each runtime sets up first.
- 100System calls and the kernel boundaryHow does a program ask the operating system to do something? Trace a library call down to a system call.
- 101File descriptors and handlesWhat does an open file look like from inside a program? Follow descriptors, standard streams, and closing what you open.
- 102I/O, buffering, and external stateWhen does writing produce a visible effect? Follow buffers, flushes, partial operations, and interactions outside the program.
- 103Virtual memory and the allocatorWhere does heap memory come from? Follow pages from the operating system through the allocator to the value you created.
- 104Signals, exit status, and terminationHow does a program end, and who finds out? Follow exit codes, signals such as SIGINT and SIGTERM, and cleanup that may not run.
Memory, references, and layout6 available
Connect language behavior to storage while keeping conceptual diagrams distinct from measured layouts.
- 105Addresses and storageWhat is a memory address, and when does a language let you work with one? Compare physical storage with a diagram of bindings.
- 106Stack and heap allocationWhere might a value be stored? Compare automatic storage, dynamic allocation, and decisions left to the implementation.
- 107Size, alignment, and paddingWhy can a record occupy more bytes than its fields add up to? Inspect a concrete layout and name its assumptions.
- 108Endianness and byte orderHow is a multi-byte number arranged? Compare memory inspection with a portable serialized representation.
- 109Escape analysis and allocationDoes returning a value or creating an object imply a heap allocation? Explore what an implementation can prove and optimize.
- 110Locality, indirection, and cachesWhy can two ways of storing the same data have different costs? Follow contiguous access and pointer chasing.
Evaluation, retention, and reclamation3 available
Distinguish when work happens, why data stays reachable, and how storage becomes eligible for reclamation.
- 111Reachability and garbage collectionWhen does an unused value become eligible for reclamation? Compare roots, cycles, reference counting, and tracing collectors.
- 112Leaks in garbage-collected programsHow can memory grow when a collector is running? Find caches, listeners, and closures that keep values reachable.
- 113C++ object lifetime: copies, moves and the rule of fiveWhy does copying an object free the same memory twice? Give every resource one owner with copy, move and assignment members.
Time, concurrency, and shared state12 available
Reason about more than one activity after calls, mutation, lifetime, and failure are familiar.
- 114Concurrency and parallelismCan tasks overlap without running simultaneously? Separate task structure, scheduling, and multiple execution resources.
- 115Threads, tasks, and goroutinesWho schedules each unit of work? Compare runtime tasks with operating-system threads.
- 116Promises, futures, and async/awaitHow do asynchronous results represent completion and suspension? Compare promises in TypeScript with futures in Rust, and what async/await does in each.
- 117The event loop and queued workWhen does a callback or promise continuation run? Trace queued work and compare runtime-specific scheduling rules.
- 118What happens underneath asynchronous I/O?Follow an asynchronous operation through host resources, worker-pool queueing and callback delivery.
- 119Data races and synchronizationWhich interleaving changes the result? Compare locks, atomics, and the visibility guarantees of a memory model.
- 120Channels and message passingWho owns data as it travels between tasks? Compare queues, channels, shared memory, and bounded capacity.
- 121Cancellation, deadlocks, and task lifetimeWhat happens when work must stop or two tasks wait on each other? Follow cancellation, cleanup, and waiting dependencies.
- 122Workers and parallelism in JavaScriptHow does single-threaded JavaScript use several cores? Follow workers, message copying, and shared memory.
- 123Go select, sync, and contextHow do goroutines wait, coordinate, and stop? Follow select, WaitGroup, Mutex, and cancellation through context.
- 124Rust Send, Sync, and thread boundariesWhich values can cross threads, and which references can be shared? Connect type guarantees to synchronization.
- 125C++ atomics, memory order, and data racesWhy does a release build hang where a debug build works? Treat data races as undefined behavior and publish with release and acquire.
Compilers, virtual machines, and runtimes10 available
Bring the pieces together: how language rules become executable work, and what the runtime supplies.
- 126Parsing, syntax trees, and intermediate formsHow does source text become something a tool can analyze? Follow tokens, an AST, and an intermediate representation.
- 127How a type checker worksWhat does the compiler do with your types? Follow checking and inference over a small syntax tree.
- 128Compilation and interpretationWhat is translated, and what is executed? Compare strategies without treating compiled and interpreted as exclusive language categories.
- 129Linking, loading, and modulesHow are separately built pieces connected? Compare symbols, libraries, imports, and loading a program.
- 130Calling across a foreign-function boundaryAdapt string representation, byte capacity and allocation ownership across a C ABI.
- 131Optimization, AOT, and JITWhy might the machine do less work than the source suggests? Explore ahead-of-time compilation, hot paths, and preserving observable behavior.
- 132Undefined behavior and the as-if ruleWhy does a release build give a different answer? See what the optimizer may assume when a program has undefined behavior.
- 133TypeScript checking and JavaScript executionWhich parts of TypeScript survive into JavaScript? Follow erased types, emitted code, and the separate JavaScript runtime.
- 134Go runtime services and schedulingWhat remains at runtime in a compiled program? Follow goroutine scheduling, stack growth, and garbage collection.
- 135Rust monomorphization and trait dispatchHow does a generic operation become executable code? Compare concrete instantiations with dynamic trait dispatch.
Stage 3
Math
Use mathematical models to explain software behavior, from numeric representation and layout to motion, measurements and AI.
Quantities, algebra, and representation16 available
Define quantities, solve constraints, understand functions, and keep numeric representations and units straight.
- 136Units, dimensions, and conversionsKeep bytes and bits, seconds and milliseconds, and decimal and binary prefixes distinct.
- 137Ratios, rates, and proportionsCalculate throughput, requests per second, utilization, and scaling with matching units.
- 138Equations, inequalities, and constraintsWork backward from a limit to find how many items fit, how fast work must finish, or which input values are allowed.
- 139Linear interpolation and scalingMap values between ranges for progress bars, chart axes, and easing, and clamp what falls outside.
- 140Functions, composition, and piecewise rulesDefine input domains, combine transformations, and handle thresholds, caps and tier boundaries deliberately.
- 141Percentages and percentage pointsRead error rates, cache hit rates, rollout shares, and growth without losing the denominator.
- 142Powers of two and logarithmsRelate address space, binary sizes, search depth, and scale to repeated doubling.
- 143Binary, hexadecimal, and bit operationsRead subnet masks, flags, permissions, and protocol fields at the bit level.
- 144Boolean logic, sets, and predicatesReason about firewall rules, filters, and eligibility conditions as combinations of true/false claims.
- 145Counting and combinatoricsCount permutations and combinations to see why test matrices and feature-flag combinations grow so fast.
- 146Signed numbers, overflow, and fixed-width valuesUnderstand integer limits, counters, timestamps, and why language number models differ.
- 147Floating point and roundingSee why 0.1 + 0.2 isn't 0.3, compare floats safely, and store money as integer minor units.
- 148Numerical stability and conditioningCompare equivalent formulas that behave differently with finite precision, and separate input sensitivity from computation error.
- 149Modular arithmeticUse remainders for hash buckets, ring buffers, and wraparound, and see how % treats negative numbers across languages.
- 150Text, Unicode, and encoded bytesDistinguish characters, code points, and UTF-8 bytes when sizes and indexes matter.
- 151Entropy and bits of strengthTurn token length and alphabet size into bits to judge how guessable an ID or password is.
Change, uncertainty, and evidence14 available
Use growth, probability, and statistics to interpret behavior and measurements.
- 152Linear, exponential, and logarithmic growthCompare workload growth, repeated doubling, search depth, and algorithm cost.
- 153Sums and seriesAdd up geometric series to find total backoff wait time and the amortized cost of a growing array.
- 154Probability and expected valueReason about failure likelihood, retries, random choices, and average outcomes across many trials.
- 155Collisions and the birthday problemEstimate how long an ID or hash must be before collisions become likely.
- 156Conditional probability and Bayes’ ruleUpdate a belief from evidence and see why rare events produce surprising alert accuracy.
- 157Precision, recall, and the confusion matrixMeasure classifiers, alerts, and search results by what they catch and what they wrongly flag.
- 158Sampling and selection biasUnderstand how collection choices can make logs, benchmarks, or surveys misrepresent the whole.
- 159Randomness and random number generatorsChoose between seeded and cryptographic generators, and avoid modulo bias and broken shuffles.
- 160Mean, median, variance, and percentilesSummarize latency and workload without allowing a long tail to disappear into an average.
- 161Distributions and long tailsInspect latency shapes, cohort mixtures, and long tails before choosing capacity changes or alerts.
- 162Moving averages and smoothing (EWMA)Smooth noisy rates and load signals with exponential weighting, and see how the decay factor trades responsiveness for stability.
- 163Confidence, variability, and repeated measurementsCompare noisy measurements and state what a small experiment does and does not establish.
- 164Error bars and uncertainty communicationPresent estimates as ranges when the evidence does not support a precise point value.
- 165Weighted averages and aggregationChoose the right denominator and see why averaging averages or percentiles can mislead.
Math in engineering decisions11 available
Apply simple models to queues, reliability, retries, caches, capacity, and subnet plans.
- 166Back-of-envelope estimationSize a system in orders of magnitude from reference latency and throughput numbers before measuring anything.
- 167Queue growth and Little’s Law intuitionRelate arrival rate, work in progress, and wait time while keeping stability assumptions visible.
- 168Availability and failure probabilityCalculate simple dependency and redundancy cases, then challenge the assumption that failures are independent.
- 169Tail latency under fan-outCalculate how a slow response in one call out of a hundred becomes the common case when requests fan out.
- 170Retry amplification and backoffCalculate how retries multiply work during partial failure and compare bounded backoff policies.
- 171Rate limiting mathModel token buckets and sliding windows to set burst size and refill rate deliberately.
- 172Cache hit rate and break-even costEstimate when cached work pays off and how update and invalidation costs affect the decision.
- 173SLOs, error budgets, and burn rateTurn an availability target into an error budget and use burn rate to decide when to page.
- 174Load distribution and hashingCompare modulo hashing, consistent hashing, and power-of-two-choices for spreading load across nodes.
- 175Capacity, headroom, and saturationReason about demand, utilization, and why a heavily loaded queue may degrade quickly.
- 176Network subnet planningAllocate address ranges for current needs and growth, with each mask and boundary check shown.
Vectors, transformations, and AI12 available
Use vectors, transformations and gradients across software, then apply them to embeddings, training and model output.
- 177Vectors and dot productsTreat a list of numbers as a direction and a length, and see what a dot product measures.
- 178Similarity and distanceCompare cosine and Euclidean distance, and see why the metric and normalization must match the index.
- 179Matrices as transformationsRead matrix multiplication as applying one function to many vectors at once, the core of a neural network layer.
- 180Derivatives, gradients, and the chain ruleTreat a derivative as sensitivity and see how the chain rule passes it back through layered functions.
- 181Gradient descent and learning rateStep downhill on a loss surface and watch the learning rate cause slow progress, overshooting, or divergence.
- 182Exponentials, softmax, and temperatureTurn raw scores into probabilities, reshape them with temperature, and keep the math stable with log-sum-exp.
- 183Log-probabilities and information theoryUse entropy, cross-entropy, perplexity, and KL divergence to measure how well a model predicts.
- 184Sampling strategies (greedy, top-k, top-p)Compare decoding strategies as different ways of picking the next token from a distribution.
- 185NormalizationRescale features with min-max and z-scores, and see how the fitted population shapes model inputs.
- 186High-dimensional intuitionSee why distance behaves strangely in many dimensions and why approximate nearest-neighbor search exists.
- 187Quantization and numeric precisionCompare fp32, fp16, bf16, and int8 and what each trades in range, precision, and memory.
- 188Token and cost arithmeticEstimate token counts from a declared text ratio, budget context windows, and calculate request cost.
Geometry, motion, and signals7 available
Reason about space, change over time, sampled signals, color and device energy with explicit units and model limits.
- 189Angles, trigonometry, and coordinate geometryCalculate directions and rotations, distinguish radians from degrees, and translate between screen and world coordinates.
- 190Position, velocity, and integrationAccumulate a changing rate over elapsed time, compare discrete updates, and explain why update intervals affect error.
- 191Curves and easingMap time progress to value progress, relate slopes to speed, and distinguish a path curve from an easing function.
- 192Springs, damping, and feedbackExplain overshoot and settling, choose a stopping rule, and test the effect of the update interval on a spring model.
- 193Sampling, frequency, and aliasingExplain which changing signals discrete observations can distinguish and why downsampling needs a frequency model.
- 194Color, alpha, and interpolation spacesChoose the representation for a color calculation, composite transparency, and explain why channel averages can produce different gradients.
- 195Power, energy, and duty cyclesTurn a device’s active and sleeping schedule into an energy budget while keeping voltage, capacity and runtime assumptions explicit.
Stage 4
Data and Databases
Model and query stored facts, preserve database rules, and follow data through callers, caches, provider moves and analytical outputs.
Data, tables, and relationships5 available
Turn a question about stored facts into explicit rows, identities and relationships.
- 196Tables, records, and the questions they answerWhat is one row a fact about? Distinguish a stored record, a result row and the question a table can answer.
- 197Schemas and database typesWhich values belong in a column? State its meaning, representation and database-specific type assumptions.
- 198Keys and row identityHow do you identify the same record after its display name changes? Compare natural, surrogate and composite keys.
- 199Relationships and cardinalityCan one record have several matches? Model one-to-many and many-to-many relationships before writing the join.
- 200Constraints and data integrityWhich rule must every writer preserve? Use keys, foreign keys, uniqueness and checks to reject invalid stored states.
Reading rows with SQL8 available
Write a query whose returned rows match an explicit question.
- 201Selecting columns and filtering rowsWhich rows and values answer the request? Read SELECT and WHERE against a small table before adding more clauses.
- 202NULL and three-valued predicatesWhat does an unknown or absent value do to a filter? Trace comparisons, IS NULL and compound conditions explicitly.
- 203Ordering, ties, and deterministic limitsWhich rows should be first when values tie? State a complete order before pagination or a top-N result.
- 204Cursor pagination and changing datasetsHow do you continue a result across pages while records change? Use a total order and explain cursor, duplicate and omission boundaries.
- 205Expressions, casts, and conditional valuesWhere does a calculated value come from? Follow expressions, CASE and conversions without losing units or meaning.
- 206Grouping, aggregates, and HAVINGWhat does one output row summarize? Separate row filters, group filters and counts that include or exclude missing values.
- 207Subqueries and existence questionsDoes a matching record exist, or do you need its values? Express the question without multiplying unrelated rows.
- 208Duplicates and set operationsAre repeated rows meaningful? Compare DISTINCT, UNION and UNION ALL against the required multiplicity.
Combining and shaping data6 available
Follow row identity and multiplicity through a multi-table query.
- 209Joins and row multiplicationWhy did a count grow after a join? Follow matching row pairs and distinguish an intended relationship from accidental fan-out.
- 210Outer joins and missing matchesWhich unmatched records must remain visible? Follow the effect of ON and WHERE on a left-joined result.
- 211Querying relationships and missing linksHow do you find records with all, some or no related rows? Query junction tables and anti-matches under explicit rules.
- 212Common table expressions and query stepsCan the query be explained in named stages? Use CTEs to make intermediate row sets inspectable.
- 213Views and derived dataWhich result should callers share? Explain what a view defines and what remains dependent on current base data.
- 214Window functions and per-row contextHow can each row retain its identity while gaining a rank or running total? State partitions, ordering and frame assumptions.
Modeling a database7 available
Choose a schema that preserves the application rules as facts change.
- 215From questions and rules to a schemaWhich facts and operations must the application support? Derive entities, relationships and constraints from concrete requirements.
- 216Normalization and functional dependenciesWhy does one edit require several updates? Identify duplicated facts and explain which dependency a table should represent.
- 217Money, time, and units in stored dataWhat does a stored number or timestamp mean? Choose representations that preserve precision, units and calendar intent.
- 218Historical records and changing factsShould an old result change when a current attribute changes? Separate current state from the facts needed to explain history.
- 219Identifiers and external dataWhen do two incoming records refer to the same entity? Keep source identity, local keys and reconciliation decisions explicit.
- 220Columns, JSON, or both?Which facts belong in columns and which can remain inside a document? Choose boundaries that preserve identity, relationships and the required reads and writes.
- 221Querying and indexing nested dataWhat does a nested-data predicate match? Distinguish missing paths, JSON null and SQL NULL, then inspect the selected engine’s actual access mechanism.
Writing and evolving data5 available
Change the intended rows while preserving existing data and caller contracts.
- 222Inserting, updating, and deleting rowsWhich rows will change? Review write predicates and affected results before applying a mutation.
- 223Parameters, values, and query structureHow does caller data enter a query? Separate bound values from identifiers and structural choices in the statement.
- 224Conflicts and upsertsWhich existing fact may an incoming row replace? Tie conflict handling to a declared key and an explicit update policy.
- 225Schema changes and migrationsHow does an existing database reach a new shape? Preserve old rows, backfill deliberately and check the migration result.
- 226Imports, validation, and rejected rowsWhat should happen when part of an import violates the schema? Choose atomic or partial behavior and retain a useful rejection report.
Transactions and concurrent work6 available
Explain what each session can observe and which stored rule survives an interleaving.
- 227Atomicity, commit, and rollbackWhich writes must become visible together? Follow committed state and failure without treating application memory as a database transaction.
- 228Isolation and visible changesWhat can a second session see? Compare explicit schedules under the chosen database and isolation mode.
- 229Lost updates and conditional writesCan two correct-looking reads overwrite each other? Use a distinguishing interleaving to choose an update condition.
- 230Uniqueness under concurrencyWhat if two writers both see no match? Explain which database constraint decides the outcome and how the caller handles it.
- 231Locks, waits, and deadlocksWhy is a transaction waiting? Identify the held resource, requested resource and the recovery permitted by the database contract.
- 232Retries and uncertain commit outcomesDid the transaction fail, or did its reply disappear? Preserve operation identity and distinguish retryable refusal from unknown completion.
Query cost and plans5 available
Connect a query result to the work required to obtain it.
- 233Indexes and access pathsWhich work can an index avoid? Compare searching an index with scanning rows while keeping write and storage costs visible.
- 234Composite indexes and orderingWhich predicates and ordering can this index help? Relate key order to the actual query rather than adding indexes by column count.
- 235Reading a simple query planWhat did the database choose to do? Trace scans, joins and estimated versus observed work in a declared plan format.
- 236Query shape and N+1 workHow many round trips does the caller cause? Compare repeated lookups with an appropriately shaped query without changing result meaning.
- 237Measuring before optimizing a queryDid the change reduce useful work? Keep the dataset, query, result and measurement conditions comparable.
Keeping and using data5 available
Carry stored facts across restarts, exports and deliberate lifecycle changes.
- 238Durability and crash boundariesWhat survives an interruption? Separate acknowledged commit, process state and the storage guarantees actually configured.
- 239Backups and restore checksCould the data actually be recovered? Verify a restore and its required schema/content instead of relying on a backup filename.
- 240Exports, portability, and round tripsWhat can be lost when data leaves the database? Check nulls, encodings, types and identity across export and import.
- 241Database files, servers, and connectionsWhat does the application connect to and who owns its lifetime? Compare an embedded file with a separate database service at the caller boundary.
- 242Data lifetimes and deletionWhich related facts should remain after removal? Explain foreign-key actions, archives and application-visible deletion under a stated policy.
Database access and portability6 available
Preserve database meaning across callers, connection pools, access policies and deliberate provider moves.
- 243Database results and application typesDoes the caller preserve the database result? Decode nullable, numeric, time and missing-row outcomes without changing their meaning.
- 244Pool leases and transaction ownershipWhich connection owns this transaction? Follow a borrowed connection, session state and return to the pool under an explicit pooling mode.
- 245Testing a database contract on the real engineDoes the declared database preserve the contract? Start from a fresh fixture and check results, errors and stored effects on the actual engine.
- 246Row visibility, roles and session identityWhich rows may this session read or change? Follow named roles, row policies and transaction-scoped identity, including owner and bypass assumptions.
- 247Database portability and provider dependenciesWhat does this database depend on beyond its host? Inventory versions, extensions, roles, helper schemas and connection requirements before choosing a replacement.
- 248Moving a database and checking the cutoverWhen can the replacement database take writes? Check restored identities, constraints, policies and query effects before transferring write ownership.
Keyed structures and cached data5 available
Explain key and member identity, missing values, cached answers and command failure boundaries.
- 249Keys, values and stored structuresWhat does one key or member represent? Choose a Redis structure for a concrete data contract and inspect the stored effects of its commands.
- 250Expiration, eviction and missing dataWhy is a key absent? Distinguish expiry, memory-policy eviction, explicit deletion and a value that was never written.
- 251Authoritative records and cached answersWhich copy is authoritative, and when may a cached answer be stale? Follow reads, writes and invalidation across PostgreSQL and Redis.
- 252Ordered membership, scores and rankingWhich members belong in this ranked range? Preserve member identity through score changes and explain ties and the result order.
- 253Grouped operations and failure boundariesWhat remains stored when grouped commands fail? Distinguish queue refusal, runtime errors and optimistic-check failure under a declared Redis setup.
Analytical models and trustworthy outputs6 available
Preserve analytical grain and explain the dependencies, checks and freshness behind a published answer.
- 254Analytical grain, facts and dimensionsWhat does one analytical row represent? Join facts and dimensions without changing metric grain, and state how historical attributes are interpreted.
- 255Columnar storage and partition pruningWhich stored work can a query avoid? Explain columnar storage and partition pruning, then distinguish the model from measured native query evidence.
- 256Transformation models and dependenciesWhich relations does this transformation create and depend on? Follow SQL models and their build dependencies across separate runs.
- 257Data checks and model contractsWhat does a failing data check establish? Inspect bad output records and distinguish detection, write refusal and a configured publication gate.
- 258Incremental models and late-arriving changesWill another run preserve the intended facts? Follow late arrivals, corrections, keys and input boundaries through incremental and full-refresh results.
- 259Freshness, materialization and published answersWhich source version and run produced this answer? Distinguish successful execution, valid output and freshness for a materialized result.
Reading progress carries across the catalog and this roadmap. Labs are there to practise each idea; reading a lesson does not certify exercise completion.