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.

Browse freely
View
Roadmap
Language focus

Choose an area to continue within it. Earlier lessons stay unread, and you can return to the full route at any time.

Next in order

Reading a program · Lesson 1

From source to a running program

Your build failed, but the preview still runs. Establish which source revision actually executed.

Full roadmap · All languages · 259 lessons. Next is the first available unread lesson in this selection.

Checking your saved reading marks…

4 stages · 259 available lessons
01

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
Values, names, and variables12 available

Follow declarations and assignments closely before treating a variable as a box in memory.

  1. 09What is a value?Explore numbers, booleans, text, and the types that determine which operations make sense.TypeScript · Go · Rust · C++
  2. 10Declaration and initializationWhat exactly does declaring a variable establish? Compare introducing a name, choosing a type, and supplying a value.TypeScript · Go · Rust · C++
  3. 11Assignment and reassignmentWhat changes when you assign again? Follow the binding and the value separately.TypeScript · Go · Rust · C++
  4. 12Mutability and constantsDoes a constant name make the underlying object immutable? Compare rebinding with changing an existing value.TypeScript · Go · Rust · C++
  5. 13Scope and shadowingWhich declaration does a name refer to here? Follow blocks, lexical scope, and a new binding with the same name.TypeScript · Go · Rust · C++
  6. 14Copying, identity, and aliasingWhen two names start from the same value, what can they share? Compare independent values with shared mutable objects.TypeScript · Go · Rust · C++
  7. 15Equality and comparisonWhen are two values “the same”? Compare value equality, identity, ==, ===, equals, Eq, and PartialEq.TypeScript · Go · Rust · C++
  8. 16Destructuring and multiple bindingsHow do several names get values from one expression? Follow pattern binding and multiple assignment.TypeScript · Go · Rust · C++
  9. 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.TypeScript
  10. 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.Go
  11. 19Rust let, mut, and shadowingWhy is a Rust binding immutable unless marked mut, and how is shadowing different from mutation? Follow each new binding.Rust
  12. 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.C++
Bits, numbers, and text7 available
Decisions and repetition8 available
Functions, calls, and closures10 available

Follow a call from argument evaluation to return, then explore the state a function can carry.

  1. 36What happens during a call?Follow argument evaluation, parameter binding, the body, and the return to the caller.TypeScript · Go · Rust · C++
  2. 37Arguments, values, and referencesWhat does the callee receive, and which changes can the caller observe? Avoid reducing every language to one passing rule.TypeScript · Go · Rust · C++
  3. 38Return values and multiple resultsWhere does the result go? Compare returned values, tuples, multiple results, and functions without an explicit return.TypeScript · Go · Rust · C++
  4. 39Optional, default, and variadic parametersHow does one function accept different numbers of arguments? Compare defaults, rest parameters, varargs, and overloading.TypeScript · Go · Rust · C++
  5. 40Call frames and the call stackWhat state must a call keep? Use a conceptual frame before inspecting a particular runtime.TypeScript · Go · Rust · C++
  6. 41Recursion and the base caseHow do nested calls make progress and unwind? Follow each call separately and account for depth.TypeScript · Go · Rust · C++
  7. 42Closures and captured variablesHow can a function use a name after its enclosing call returns? Compare capture rules and captured state.TypeScript · Go · Rust · C++
  8. 43Side effects and pure functionsWhat changes besides the return value? Trace mutation, output, and dependencies on external state.TypeScript · Go · Rust · C++
  9. 44Rust closure capture and Fn traitsDoes a closure borrow, mutate, or consume its environment? Connect Fn, FnMut, FnOnce, and move captures.Rust
  10. 45TypeScript this and arrow functionsWhat determines this at a call site? Compare an ordinary function with an arrow that captures its enclosing this.TypeScript
Collections and structured values9 available

Build larger values and learn what indexing, resizing, copying, and iteration really involve.

  1. 46Arrays, lists, and vectorsWhat stays fixed, and what can grow? Compare indexed collections, capacity, and resizing.TypeScript · Go · Rust · C++
  2. 47Slices, views, and shared storageDoes selecting a range copy its elements or share their storage? Trace what happens when either side changes.TypeScript · Go · Rust · C++
  3. 48Records, structs, and objectsHow are named fields grouped, and what does copying the containing value actually copy?TypeScript · Go · Rust · C++
  4. 49Maps, dictionaries, and hashingHow is a key found? Connect equality and hash rules to insertion, lookup, and collisions.TypeScript · Go · Rust · C++
  5. 50Sets and uniquenessWhat makes two entries the same? Explore equality, hashability, and the cost of membership checks.TypeScript · Go · Rust · C++
  6. 51Ordering, sorting, and comparatorsWhat does a comparator promise? Follow ordering contracts, stable sorting, and the subtraction-overflow trap.TypeScript · Go · Rust · C++
  7. 52Shallow and deep copyingWhich parts of a nested structure remain shared after a copy? Follow each level of the structure.TypeScript · Go · Rust · C++
  8. 53Iterators, generators, and lazinessWhen is the next value computed? Compare eager collections with stateful or lazy iteration.TypeScript · Go · Rust · C++
  9. 54Go slice headers, append, and capacityWhen do two slices share an array, and when can append change the storage relationship?Go
References and pointers3 available
Types and abstraction11 available

Describe the values an operation accepts and see how each language expresses a reusable contract.

  1. 58Static and dynamic type checksWhich checks happen before execution, and which depend on a running value? Compare what the checker can establish.TypeScript · Go · Rust · C++
  2. 59Inference, coercion, and conversionHow is a type inferred, and when is a value converted? Separate implicit coercion from an explicit conversion.TypeScript · Go · Rust · C++
  3. 60Constructors and creating valuesHow does a new value get its initial state? Compare constructors, struct literals, factory functions, and data constructors.TypeScript · Go · Rust · C++
  4. 61Methods, receivers, and thisHow does a method get the value it operates on? Compare receivers, method binding, and calling conventions.TypeScript · Go · Rust · C++
  5. 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.TypeScript · Go · Rust · C++
  6. 63Generics and type parametersHow can one operation work over several types while preserving useful constraints?TypeScript · Go · Rust · C++
  7. 64Alternatives and combinationsHow do records and tagged variants describe different shapes of data? Explore products, unions, enums, and exhaustive handling.TypeScript · Go · Rust · C++
  8. 65Dispatch, inheritance, and compositionWhich implementation runs for this call? Compare static selection, dynamic dispatch, and delegating to another value.TypeScript · Go · Rust · C++
  9. 66TypeScript narrowing and discriminated unionsHow does a check refine the type of a value? Compare static narrowing with actual runtime validation.TypeScript
  10. 67Go struct embedding and promoted methodsIs embedding inheritance? Follow promoted fields and methods, and see which receiver a promoted method actually gets.Go
  11. 68Rust traits, impl blocks, and deriveWhere do a type’s behaviors come from? Follow inherent impls, trait impls, derived traits, and the orphan rule.Rust
Functional evaluation and effects6 available
Modules, names, and visibility3 available
Errors and failure7 available
Lifetimes, ownership, and cleanup6 available
02

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
Building and loading a program3 available
Your program and the operating system7 available
Memory, references, and layout6 available
Evaluation, retention, and reclamation3 available
Time, concurrency, and shared state12 available

Reason about more than one activity after calls, mutation, lifetime, and failure are familiar.

  1. 114Concurrency and parallelismCan tasks overlap without running simultaneously? Separate task structure, scheduling, and multiple execution resources.TypeScript · Go · Rust · C++
  2. 115Threads, tasks, and goroutinesWho schedules each unit of work? Compare runtime tasks with operating-system threads.TypeScript · Go · Rust · C++
  3. 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.TypeScript · Rust · C++
  4. 117The event loop and queued workWhen does a callback or promise continuation run? Trace queued work and compare runtime-specific scheduling rules.TypeScript
  5. 118What happens underneath asynchronous I/O?Follow an asynchronous operation through host resources, worker-pool queueing and callback delivery.TypeScript
  6. 119Data races and synchronizationWhich interleaving changes the result? Compare locks, atomics, and the visibility guarantees of a memory model.TypeScript · Go · Rust · C++
  7. 120Channels and message passingWho owns data as it travels between tasks? Compare queues, channels, shared memory, and bounded capacity.Go · Rust · C++
  8. 121Cancellation, deadlocks, and task lifetimeWhat happens when work must stop or two tasks wait on each other? Follow cancellation, cleanup, and waiting dependencies.TypeScript · Go · Rust · C++
  9. 122Workers and parallelism in JavaScriptHow does single-threaded JavaScript use several cores? Follow workers, message copying, and shared memory.TypeScript
  10. 123Go select, sync, and contextHow do goroutines wait, coordinate, and stop? Follow select, WaitGroup, Mutex, and cancellation through context.Go
  11. 124Rust Send, Sync, and thread boundariesWhich values can cross threads, and which references can be shared? Connect type guarantees to synchronization.Rust
  12. 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.C++
Compilers, virtual machines, and runtimes10 available

Bring the pieces together: how language rules become executable work, and what the runtime supplies.

  1. 126Parsing, syntax trees, and intermediate formsHow does source text become something a tool can analyze? Follow tokens, an AST, and an intermediate representation.TypeScript · Go · Rust · C++
  2. 127How a type checker worksWhat does the compiler do with your types? Follow checking and inference over a small syntax tree.TypeScript · Go · Rust · C++
  3. 128Compilation and interpretationWhat is translated, and what is executed? Compare strategies without treating compiled and interpreted as exclusive language categories.TypeScript · Go · Rust · C++
  4. 129Linking, loading, and modulesHow are separately built pieces connected? Compare symbols, libraries, imports, and loading a program.TypeScript · Go · Rust · C++
  5. 130Calling across a foreign-function boundaryAdapt string representation, byte capacity and allocation ownership across a C ABI.TypeScript · Go · Rust · C++
  6. 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.TypeScript · Go · Rust · C++
  7. 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.C++
  8. 133TypeScript checking and JavaScript executionWhich parts of TypeScript survive into JavaScript? Follow erased types, emitted code, and the separate JavaScript runtime.TypeScript · Go · Rust · C++
  9. 134Go runtime services and schedulingWhat remains at runtime in a compiled program? Follow goroutine scheduling, stack growth, and garbage collection.TypeScript · Go · Rust · C++
  10. 135Rust monomorphization and trait dispatchHow does a generic operation become executable code? Compare concrete instantiations with dynamic trait dispatch.TypeScript · Go · Rust · C++
03

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.

  1. 136Units, dimensions, and conversionsKeep bytes and bits, seconds and milliseconds, and decimal and binary prefixes distinct.TypeScript · Go · Rust · C++
  2. 137Ratios, rates, and proportionsCalculate throughput, requests per second, utilization, and scaling with matching units.TypeScript · Go · Rust · C++
  3. 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.TypeScript · Go · Rust · C++
  4. 139Linear interpolation and scalingMap values between ranges for progress bars, chart axes, and easing, and clamp what falls outside.TypeScript · Go · Rust · C++
  5. 140Functions, composition, and piecewise rulesDefine input domains, combine transformations, and handle thresholds, caps and tier boundaries deliberately.TypeScript · Go · Rust · C++
  6. 141Percentages and percentage pointsRead error rates, cache hit rates, rollout shares, and growth without losing the denominator.TypeScript · Go · Rust · C++
  7. 142Powers of two and logarithmsRelate address space, binary sizes, search depth, and scale to repeated doubling.TypeScript · Go · Rust · C++
  8. 143Binary, hexadecimal, and bit operationsRead subnet masks, flags, permissions, and protocol fields at the bit level.TypeScript · Go · Rust · C++
  9. 144Boolean logic, sets, and predicatesReason about firewall rules, filters, and eligibility conditions as combinations of true/false claims.TypeScript · Go · Rust · C++
  10. 145Counting and combinatoricsCount permutations and combinations to see why test matrices and feature-flag combinations grow so fast.TypeScript · Go · Rust · C++
  11. 146Signed numbers, overflow, and fixed-width valuesUnderstand integer limits, counters, timestamps, and why language number models differ.TypeScript · Go · Rust · C++
  12. 147Floating point and roundingSee why 0.1 + 0.2 isn't 0.3, compare floats safely, and store money as integer minor units.TypeScript · Go · Rust · C++
  13. 148Numerical stability and conditioningCompare equivalent formulas that behave differently with finite precision, and separate input sensitivity from computation error.TypeScript · Go · Rust · C++
  14. 149Modular arithmeticUse remainders for hash buckets, ring buffers, and wraparound, and see how % treats negative numbers across languages.TypeScript · Go · Rust · C++
  15. 150Text, Unicode, and encoded bytesDistinguish characters, code points, and UTF-8 bytes when sizes and indexes matter.TypeScript · Go · Rust · C++
  16. 151Entropy and bits of strengthTurn token length and alphabet size into bits to judge how guessable an ID or password is.TypeScript · Go · Rust · C++
Change, uncertainty, and evidence14 available

Use growth, probability, and statistics to interpret behavior and measurements.

  1. 152Linear, exponential, and logarithmic growthCompare workload growth, repeated doubling, search depth, and algorithm cost.TypeScript · Go · Rust · C++
  2. 153Sums and seriesAdd up geometric series to find total backoff wait time and the amortized cost of a growing array.TypeScript · Go · Rust · C++
  3. 154Probability and expected valueReason about failure likelihood, retries, random choices, and average outcomes across many trials.TypeScript · Go · Rust · C++
  4. 155Collisions and the birthday problemEstimate how long an ID or hash must be before collisions become likely.TypeScript · Go · Rust · C++
  5. 156Conditional probability and Bayes’ ruleUpdate a belief from evidence and see why rare events produce surprising alert accuracy.TypeScript · Go · Rust · C++
  6. 157Precision, recall, and the confusion matrixMeasure classifiers, alerts, and search results by what they catch and what they wrongly flag.TypeScript · Go · Rust · C++
  7. 158Sampling and selection biasUnderstand how collection choices can make logs, benchmarks, or surveys misrepresent the whole.TypeScript · Go · Rust · C++
  8. 159Randomness and random number generatorsChoose between seeded and cryptographic generators, and avoid modulo bias and broken shuffles.TypeScript · Go · Rust · C++
  9. 160Mean, median, variance, and percentilesSummarize latency and workload without allowing a long tail to disappear into an average.TypeScript · Go · Rust · C++
  10. 161Distributions and long tailsInspect latency shapes, cohort mixtures, and long tails before choosing capacity changes or alerts.TypeScript · Go · Rust · C++
  11. 162Moving averages and smoothing (EWMA)Smooth noisy rates and load signals with exponential weighting, and see how the decay factor trades responsiveness for stability.TypeScript · Go · Rust · C++
  12. 163Confidence, variability, and repeated measurementsCompare noisy measurements and state what a small experiment does and does not establish.TypeScript · Go · Rust · C++
  13. 164Error bars and uncertainty communicationPresent estimates as ranges when the evidence does not support a precise point value.TypeScript · Go · Rust · C++
  14. 165Weighted averages and aggregationChoose the right denominator and see why averaging averages or percentiles can mislead.TypeScript · Go · Rust · C++
Math in engineering decisions11 available

Apply simple models to queues, reliability, retries, caches, capacity, and subnet plans.

  1. 166Back-of-envelope estimationSize a system in orders of magnitude from reference latency and throughput numbers before measuring anything.TypeScript · Go · Rust · C++
  2. 167Queue growth and Little’s Law intuitionRelate arrival rate, work in progress, and wait time while keeping stability assumptions visible.TypeScript · Go · Rust · C++
  3. 168Availability and failure probabilityCalculate simple dependency and redundancy cases, then challenge the assumption that failures are independent.TypeScript · Go · Rust · C++
  4. 169Tail latency under fan-outCalculate how a slow response in one call out of a hundred becomes the common case when requests fan out.TypeScript · Go · Rust · C++
  5. 170Retry amplification and backoffCalculate how retries multiply work during partial failure and compare bounded backoff policies.TypeScript · Go · Rust · C++
  6. 171Rate limiting mathModel token buckets and sliding windows to set burst size and refill rate deliberately.TypeScript · Go · Rust · C++
  7. 172Cache hit rate and break-even costEstimate when cached work pays off and how update and invalidation costs affect the decision.TypeScript · Go · Rust · C++
  8. 173SLOs, error budgets, and burn rateTurn an availability target into an error budget and use burn rate to decide when to page.TypeScript · Go · Rust · C++
  9. 174Load distribution and hashingCompare modulo hashing, consistent hashing, and power-of-two-choices for spreading load across nodes.TypeScript · Go · Rust · C++
  10. 175Capacity, headroom, and saturationReason about demand, utilization, and why a heavily loaded queue may degrade quickly.TypeScript · Go · Rust · C++
  11. 176Network subnet planningAllocate address ranges for current needs and growth, with each mask and boundary check shown.TypeScript · Go · Rust · C++
Vectors, transformations, and AI12 available

Use vectors, transformations and gradients across software, then apply them to embeddings, training and model output.

  1. 177Vectors and dot productsTreat a list of numbers as a direction and a length, and see what a dot product measures.TypeScript · Go · Rust · C++
  2. 178Similarity and distanceCompare cosine and Euclidean distance, and see why the metric and normalization must match the index.TypeScript · Go · Rust · C++
  3. 179Matrices as transformationsRead matrix multiplication as applying one function to many vectors at once, the core of a neural network layer.TypeScript · Go · Rust · C++
  4. 180Derivatives, gradients, and the chain ruleTreat a derivative as sensitivity and see how the chain rule passes it back through layered functions.TypeScript · Go · Rust · C++
  5. 181Gradient descent and learning rateStep downhill on a loss surface and watch the learning rate cause slow progress, overshooting, or divergence.TypeScript · Go · Rust · C++
  6. 182Exponentials, softmax, and temperatureTurn raw scores into probabilities, reshape them with temperature, and keep the math stable with log-sum-exp.TypeScript · Go · Rust · C++
  7. 183Log-probabilities and information theoryUse entropy, cross-entropy, perplexity, and KL divergence to measure how well a model predicts.TypeScript · Go · Rust · C++
  8. 184Sampling strategies (greedy, top-k, top-p)Compare decoding strategies as different ways of picking the next token from a distribution.TypeScript · Go · Rust · C++
  9. 185NormalizationRescale features with min-max and z-scores, and see how the fitted population shapes model inputs.TypeScript · Go · Rust · C++
  10. 186High-dimensional intuitionSee why distance behaves strangely in many dimensions and why approximate nearest-neighbor search exists.TypeScript · Go · Rust · C++
  11. 187Quantization and numeric precisionCompare fp32, fp16, bf16, and int8 and what each trades in range, precision, and memory.TypeScript · Go · Rust · C++
  12. 188Token and cost arithmeticEstimate token counts from a declared text ratio, budget context windows, and calculate request cost.TypeScript · Go · Rust · C++
Geometry, motion, and signals7 available
04

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
Reading rows with SQL8 available
Combining and shaping data6 available
Modeling a database7 available
Writing and evolving data5 available
Transactions and concurrent work6 available
Query cost and plans5 available
Keeping and using data5 available
Database access and portability6 available
Keyed structures and cached data5 available
Analytical models and trustworthy outputs6 available

Reading progress carries across the catalog and this roadmap. Labs are there to practise each idea; reading a lesson does not certify exercise completion.