3 ms·
Or, for this matter, the debate over structured vs. unstructured programming. In fact, until the late '60s, a lot of people argued that some programs could not
by amyjess 11y ago
Or, for this matter, the debate over structured vs. unstructured programming.
In fact, until the late '60s, a lot of people argued that some programs could not be implemented without using GOTO and that loops are insufficient. They weren't proven wrong until 1966 (when the structured program theorem was published).
- userbinator 11y agoA lot of programs cannot be implemented efficiently without goto. Instead, you're forced into using existing structured-flow constructs in very weird ways, or extra state variables and the code to handle them. State machines are one such example. It's similar to the OOP vs procedural programming debate too; making everything into a object is "the OO way" but when overused, creates complexity instead of reducing it. I think OO and structured programming are just ways of organising code which work in many cases, but should not be followed dogmatically since they can lead to superfluous complexity.