DELAPARRA
Index
Color
NL
Category: Programming paradigms

Structured Programming

Explained by Updated

What is Structured Programming?

Structured Programming: Structured programming was a deliberate reaction against "spaghetti code" built from GOTO statements. It insists that every block have one entry and one exit, composed only from sequence (do this, then this), selection (if/else), and iteration (loops). Structured programming was a response to "spaghetti code" full of GOTO jumps. It says programs should be built from just three structures: sequence, one step after another; selection, choosing with if and else; and iteration, repeating with loops. Each block has one way in and one way out.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about Structured Programming

How is Structured Programming used in practice?

It seems obvious now, because almost every modern language is built this way. In the late 1960s it was a real change in how programmers worked, and it made programs much easier to read and verify.

What should you keep in mind with Structured Programming?

Its lessons still apply. Keep functions short with a clear flow, avoid deeply nested logic, and make the path through the code visible. Early returns and exceptions bend the strict rules a little, but in a way that usually makes code clearer rather than more tangled.

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.