Structured Programming Constructs
Imagine a plate of spaghetti noodles, cooked and well tossed. Given enough time, you could draw a map showing where each strand begins and ends, but what a task! You might die of old age before you finished, even assuming the noodles never shifted around or grew brittle and cracked.
Believe it or not, programmers used to create programs using logic as convoluted as that plate of spaghetti. When it worked it was a miracle and when it didn’t you either had job security for life or plenty of incentive to look for a new job.
Lingo
To this day, spaghetti code means source code so haphazard and disorganized that almost no one can understand it.
A technique called structured programming goes a long way toward preventing ...
Get Faster Smarter Beginning Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.