Order Is Everything
A computer does exactly what you wrote, in the order you wrote it.
In this lesson
- It starts with a question. A robot is told: "pour the water, then boil the kettle." What happens?
- The idea you will find. Sequence, repetition, condition. — Almost every program is built from three ideas: do this then that; do this again and again; do this only if something is true. Learn to see those three in ordinary tasks and the language you eventually use barely matters.
- How you learn it. By doing: putting things in order.
- Length. 5 short steps. Progress saves on this phone.
Part of Think Like a Program
Before any language: order, repetition and conditions, written so a machine cannot misread them.