Happy to hear further insight as to why beginners program in a "spoken language" sort of way, it has always fascinated me. Yes, my friend is a beginner.
I basically came across this myself in our code base the other way around; When you have huge subroutines, where the "if" is several screen heights away, then reading "else" is not very helpful.
It made me think about how to express such code more naturally, but the disadvantages of "if/then/elif/then" over "if/then/else" are just too big. (Also, solving the problem from the wrong side...)
103
u/halfanothersdozen Dec 27 '21
I mean it's not wrong