4 ms·
Like every other programming paradigm, structured programming is also a paradigm. The only difference is that it is so engrained in us that we don't see it. Lik
by terminalcommand 5y ago
Like every other programming paradigm, structured programming is also a paradigm. The only difference is that it is so engrained in us that we don't see it. Like each programming paradigm it is an ideology for me.
Why is it acceptable to refuse OOP and not code using objects and not refusing for loops, if statements etc.? It is because we are taught to program and think like that. I am not saying this is wrong, but there is so much more to programming if one can break free from structured programming paradigm. All the loops, variable declarations, scoping, if statements, switch statements etc. are inventions just like constructs of object oriented or [insert programming paradigm here] programming. CPUs don't have these constructs. These are abstractions and limitations to make life easier. But there is much more to programming if you take a step deeper.
- rramadass 5y agoThis is an illuminating viewpoint. I came to Assembly from HLLs and had often wondered why i found writing assembly code so alien and difficult (in spite of understanding Computer Architecture). I was restricting myself by looking at it only through the lens of Structured Programming constructs. Only by going beyond these concepts and embracing the full generality of Assembly can one understand many techniques like Threaded Code/Self-modifying code etc.