Mon. Jan 23rd, 2023

Describing Problems and Processes in Structured Steps

Unless explicitly stated, computers will follow instructions issued to them in the order in which they are issued. That makes the sequencing very important. The follow two pieces of code are not the same:

print('Hello')
print('World')

and

print('World')
print('Hello')

Just because they contain the same two lines of code doesn’t mean the output is the same: they are in different orders.

This is a key skill when structuring software: you can’t program “I forgot to do this earlier – so just do a task now” because it doesn’t make sense. It isn’t in order.