DELAPARRA
Index
Color
NL
Category: Programming paradigms

Sequence

Explained by Updated

What is Sequence?

Sequence: Statements executed one after another, top to bottom. Sequence is the simplest building block of structured programming: statements run one after another, top to bottom. Read the input, calculate the total, save the order, send the confirmation. Together with selection and iteration, sequence is enough to express any algorithm. It is also how most people read code, which is why clear, straight-line code is easy to follow.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about Sequence

What should you keep in mind with Sequence?

The order of steps often carries meaning that is not written down. Saving before sending a confirmation email matters; doing it the other way round can tell a customer about an order that failed to save. When the order matters, make it obvious, for example with comments or by giving each step a well-named function. When steps are independent, consider whether they could run in parallel or in the background.

At a glance

CategoryProgramming paradigms
Explained by
Updated

More Programming paradigms terms

All terms starting with S

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.