cover

How does coding work, and how do we tell a computer what to do?

The Literal Robot
How does coding work, and how do we tell a computer what to do?
A computer is a marvel — it can do **millions of things a second** — but ~~here's the funny secret:~~ it cannot guess wh

A computer is a marvel — it can do millions of things a second — but here's the funny secret: it cannot guess what you want. Not even a little. It's the most powerful, most clueless friend you'll ever have. So how do we get it to do anything at all? We write it a list of very, very clear instructions. That's coding.

Imagine teaching a friend to make a peanut butter sandwich, but they take every word literally. You say "put peanut butter on the bread," and they set the whole jar on top. You forgot to say "open the jar, scoop it, spread it." Computers are exactly like that. Coding is the art of leaving nothing to imagination.

How was this book?