Chima Profile picture
fear nothing

Sep 8, 2020, 7 tweets

When one learns their first programming language, one must also learn to program – that is, not just the syntax of this new language, but why programmers use certain constructs and how and why they combine those constructs to solve problems.

It’s quite easy to explain the art of programming (and yes, it’s an art).

Programming can be boiled down to this:

- breaking a problem down into a series of steps;
- converting each step into Python or whatever language you’re working with.

See? It’s quite easy to explain. Unfortunately, programming, like many things which are easy to explain, is quite difficult to do. 😩

What could go wrong?

Well, for one thing, the steps have to be executed in the correct order. If you break down the problem into the correct steps but don’t get the order right, your code will not work.

🤦🏽‍♂️🤦🏽‍♂️

What else could go wrong?

You could leave out a step. This happens more often than you’d think. If I ask you how to solve a problem you have solved many times in your head, you’ll often leave out a step.

What else could go wrong?

You could mistranslate a step into code. You got the steps right, but the code you wrote does not actually perform the step.

Your steps (written in English, or pseudocode–half English and half programming language) are correct, but one of more them was improperly translated.

Share this Scrolly Tale with your friends.

A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.
Discover more beautiful Scrolly Tales like this.

Keep scrolling