Shelves / Foundations of Computing
Software Engineering · Volume 1
Foundations of Computing
Part I of the Software Engineering roadmap, written out as a textbook that starts from zero. Chapter 1 assumes no programming at all; every later chapter opens with a plain-language Start here section, then goes all the way to internals, compared across C, C++, Java, Rust, Zig and Go, and ends with a measured lab and a revision sheet.
Two ways to read this book
Every chapter has the same shape: Start here (first principles, plain language, small verified programs) → How deep to go (what each mastery level needs) → full-depth sections (internals and the six languages side by side) → Lab (experiments with real measured output) → Revision sheet (key ideas, numbers to remember, pitfalls, glossary, quiz).
How to use this book
- Read one topic at a time. Each topic heading has a Done tick. Tick it only when you can explain the idea aloud without looking, which is roughly mastery level L2–L3 below.
- Run the code. Every comparison block has tabs for each language; type the example out in at least two of them.
- Take the chapter quiz at the end. A score of 80% or more counts as passed. Wrong answers show the explanation, so re-read that topic and untick it if needed.
- Revisit after a delay. The roadmap's loop applies: recall, explain, implement without notes, break it, measure it.
Mastery levels
Languages used throughout
Status as of October 2026: every chapter now opens with a beginner Start here section and closes with a revision sheet; every lab's experiments were compiled and run (GCC 13, Clang 22, JDK 21, Go 1.24, Rust 1.97, Zig 0.17, CPython 3.13, Node 22, PostgreSQL 16, OpenSSL 3) and their real output is shown, and chapter 11 includes working reference implementations of eight mastery projects. Zig is pre-1.0 and its standard library still changes between releases; Java examples target JDK 21+ (LTS) and note where newer releases changed things.
Contents
- CS·01Start Here: Computers, Programs and Your ToolboxThe chapter to read first if you've never studied computer science, and a quick refresher if you have. What a computer is and what its parts do; what…26 min
- CS·02Programming Fundamentals & ParadigmsWhat a program is, how source becomes execution, and how six languages answer the same basic questions about values, memory, errors and abstraction.117 min
- CS·03Data StructuresHow data is laid out in memory and what each layout makes cheap or expensive, from arrays and hash tables to B+ trees, Bloom filters and LSM trees.77 min
- CS·04AlgorithmsMeasuring cost with asymptotic analysis, then the core toolkit: searching, sorting, recursion, divide and conquer, dynamic programming, greedy…78 min
- CS·05Discrete MathematicsThe mathematics computing actually runs on: sets, logic, proofs, counting, probability, recurrences and Boolean algebra, each tied back to code.45 min
- CS·06Number Systems & Data RepresentationHow bits become integers, real numbers and text. Two's complement, IEEE 754, Unicode and UTF-8, byte order, and the bugs that live at each boundary.45 min
- CS·07Computer ArchitectureWhat the hardware actually does with your code: the CPU's parts, the instruction cycle, pipelines and speculation, the memory hierarchy, interrupts…46 min
- CS·08Operating SystemsThe kernel's job and how your programs live inside it: processes, threads, scheduling, concurrency primitives, virtual memory, filesystems and I/O…69 min
- CS·09Networking FundamentalsHow bytes cross the world: layered models, Ethernet and IP, addressing and routing, NAT, ARP, ICMP, DHCP, TCP's reliability and congestion control…54 min
- CS·10Compilers & RuntimesHow source text becomes running code: lexing, parsing, ASTs, type checking, IR, optimisation, code generation, linking and loading, and the runtime…48 min
- CS·11Computer Science Mastery ProjectsTen build-it-yourself projects that turn chapters 2–10 into skill: what each one teaches, a milestone plan, which language to build it in, how to…75 min