brainfck.org
Topics Books Journal Tags Search

Dijkstra's rules of structured programming

  • Structured programming imposes discipline on direct transfer of control.
  • every function, every block within a function, should have one entry and one exit.
  • therefore there should be only one return statement in a function, no break or continue statements in a loop, and never, ever, any goto statements
  • Dijkstra showed that the use of unrestrained jumps (goto statements) is harmful to program structure.
    • he replaced those jumps with the more familiar if/then/else and do/while/until constructs.

No notes link to this note yet


prev post next post



Powered by Hugo, based on the Er theme.
Quick Capture
Bookmarks
Scroll to Top

Quick Capture

What would you like to capture?

No captures yet