My friend, Chris Stead, has been introducing me into programming. I have tried to pick up programming before but usually struggle with the concepts as I cannot visualize what the code is doing. Chris explained the basics of programming as such:
Imagine they (control structures) are like a police officer directing traffic around an accident, a really big accident. An accident that just about deleted the internets. They say turn, you turn. They say stop, you do it.
For is a control structure. It says ‘repeat this until Simon says stop.”‘
While is the same way.
If says ‘ONLY do this WHEN Simon says.’
Oh, and else is the weird cling-on that follows If around and cleans up the leftover mess with a pooper-scooper.”
Using visual imagery to help me better understand how programming works, Chris has illustrated programming for me.