Leanpub Header

Skip to main content

The Computer Science Book

A complete introduction to computer science in one book

Learn the computer science foundations you need to jump start your career. Ten chapters covering all the career-essential topics. Become confident in computer architecture, networking, databases and much more. Perfect for beginners, self-taught developers, bootcamp graduates and anyone who wants to really understand how computers work.

Minimum price

$29.00

$29.00

You pay

$29.00

Author earns

$23.20
$

...Or Buy With Credits!

You can get credits monthly with a Reader Membership
PDF
EPUB
WEB
About

About

About the Book

Learning computer science is difficult. Things are even tougher if you’re learning by yourself. This book is trying to change that.

When I started my first real programming job, fresh from a bootcamp, I was crushingly aware of how little I knew. Worse than that, I was constantly reminded of how much I didn’t even realise that I didn’t know. Well-meaning colleagues would casually mention some concept or convention that I’d simply never heard of.

The obvious thing to do is to study computer science. But how do you study computer science if a four year degree isn’t an option? Where should you start? How do you chart your way through the whole of computer science, studying topics in the right order? Which of the many classic textbooks should you read?

After years of study, I’ve written a book that will make computer science easy. Ten concise chapters covering each of the major areas will give you a comprehensive introduction to the fundamentals and guide you towards the best resources for further study. We’ll cover everything you need to be an effective developer. You’ll understand how everything fits together, be confident of what you know and, even more importantly, be aware of what you don’t know. Each chapter functions as both a standalone introduction and a primer for further, independent study.

Author

About the Author

Tom Johnson

Hi, I'm Tom! I'm a working developer who has spent years learning the fundamentals of computer science. If you want to reach the next level as a developer read The Computer Science Book, a complete introduction to computer science in one book.

Contents

Table of Contents

Introduction

Theory of computation

  1. Introduction
  2. Automata theory
  3. Computability
  4. Algorithmic complexity
  5. Conclusion
  6. Further reading

Algorithms and data structures

  1. Introduction
  2. Data structures
  3. Abstract data types
  4. Algorithms
  5. Conclusion
  6. Further reading

Computer architecture

  1. Introduction
  2. Representing information
  3. Circuits and computation
  4. The processor
  5. Memory
  6. Performance optimisations
  7. Conclusion
  8. Further reading

Operating systems

  1. Introduction
  2. Common operating systems
  3. The boot process
  4. Interrupts: hardware support for software
  5. The kernel
  6. Managing the processor
  7. Managing memory
  8. Managing persistence
  9. Conclusion
  10. Further reading

Networking

  1. Introduction
  2. What is a network?
  3. The networking stack model
  4. The Internet Protocol
  5. Transmission Control Protocol
  6. Internet addressing and DNS
  7. The web, hypertext and HTTP
  8. Conclusion
  9. Further reading

Concurrent programming

  1. Introduction
  2. Concurrency, parallelism and asynchrony
  3. Determinacy and state
  4. Threads and locks
  5. JavaScript and the event loop
  6. Communicating sequential processes in Go
  7. Conclusion
  8. Further reading

Distributed systems

  1. Introduction
  2. Why we need distributed systems
  3. A theoretical model
  4. Handling network partitions: the CAP theorem
  5. Consistency models
  6. Consistency protocols
  7. Conclusion
  8. Further reading

Programming languages

  1. Introduction
  2. Defining a programming language
  3. Programming language concepts
  4. Programming paradigms
  5. Type systems
  6. Conclusion
  7. Further reading

Databases

  1. Introduction
  2. What does a database offer?
  3. Relational algebra and SQL
  4. Database architecture
  5. B-trees
  6. Indexes
  7. Concurrency control in SQLite and Postgres
  8. Conclusion
  9. Further reading

Compilers

  1. Introduction
  2. Compilation and interpretation
  3. The program life-cycle
  4. Building a compiler
  5. Who to trust?
  6. Conclusion
  7. Further reading

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub