3 ms·
> structured programming Actually this one is alive and well, although it might be hard to see as we have built huge complex structures over it. We still foll
by praptak 14y ago
> structured programming
Actually this one is alive and well, although it might be hard to see as we have built huge complex structures over it.
We still follow its basic principles - one entry point per subroutine, no jumps into middle of loop body, no jumps into branches of "if", only the subroutines are sometimes called procedures, methods or functions.
Even those who program directly in machine code seldom break the above commandments.
Nope, SP is definitely not a fashion.
- barrkel 14y agoI sometimes even use goto, as well as break, continue, and return before the end of the function. Bite me. ;) (SP adherents used to advocate using flags instead of breaking out of loops explicitly, amongst other things. It's this kind of virtuous action for the sake of the virtue, rather than anything that necessarily makes sense, that I'm talking about.)