Computers Are Literal
A computer does exactly what you say, not what you mean
- explain why a computer does exactly what it is told,
- tell the difference between a vague step and a clear step,
- write instructions that are clear, complete, and in the right order.
1. What does "literal" mean?
To be literal means to take words exactly as they are said. A computer is very literal. If you say "take one step," it takes exactly one step — not two, and not a big jump.
People are not like this. If a friend says "grab a drink," you know they mean juice or water, not a puddle from the street. You fill in the missing parts with common sense. A computer has no common sense. It only knows the exact steps you gave it.
2. Why a computer cannot guess
A computer cannot guess what you meant. It has no feelings, no memories, and no common sense. It just runs your steps, one after another, exactly as written.
So there are two kinds of instructions:
- Vague — unclear, or can be understood in more than one way. Example: "clean up." Clean up what? How?
- Clear (precise) — says exactly what to do, with nothing missing. Example: "put the red blocks in the box, then close the lid."