Second edition with machine learning, deep learning, LLMs & AI available now! Buy now

The Computer Science Book

The Computer Science Book, Second Edition is a practical map of computer science for working developers. It gives you the foundations beneath the abstractions, without asking you to reconstruct a whole degree from scratch.

The online version previews the chapters below, including the three new V2 chapters on machine learning, deep learning, and large language models and AI.

Want the full second edition?

Buy the ebook - $29

Ebook purchase includes PDF and EPUB formats.

Preview chapters

  1. Theory of computation Preview

    Automata, computability, and algorithmic complexity

  2. Algorithms and data structures Preview

    Arrays, linked lists, hash maps, sorting, and searching

  3. Computer architecture Preview

    Binary, logic gates, processors, and memory hierarchy

  4. Operating systems Preview

    Processes, memory management, and file systems

  5. Networking Preview

    TCP/IP, DNS, HTTP, and how the internet works

  6. Concurrent programming Preview

    Threads, locks, and asynchronous programming

  7. Distributed systems Preview

    CAP theorem, consistency models, and consensus protocols

  8. Programming languages Preview

    Paradigms, type systems, and language design

  9. Databases Preview

    SQL, indexes, B-trees, and concurrency control

  10. Compilers Preview

    Parsing, ASTs, code generation, and optimization

  11. Machine learning Preview

    Learning from data, uncertainty, evaluation, and where ML fits into real software systems

  12. Deep learning Preview

    Neural networks, learned representations, and the architectures behind modern AI

  13. Large language models and AI Preview

    Transformers, post-training, and the systems perspective behind LLM-powered software