If it was this simple we wouldn't be still arguing about coding styles decades after they were invented.
Money quote.
Re:Avoid Else, Return Early (2013)
by ropeadopepope on Monday March 26, 2018 @03:55PM
(#16681943)
> If it was this simple we wouldn't be still arguing about coding styles decades after they were invented.
I disagree with the logic in this sentence. New coding styles are invented all the time. The guard statements in the article were only formalized in the late 90s, for example. These arguments about coding styles "decades after they were invented" are the only way we know which work and which don't.
It's not a matter of taste. It's how you separate the wheat from the chaff. Except for the brackets one. ;)
Late 90s were 2 decades ago :)
Re:Avoid Else, Return Early (2013)
by ropeadopepope on Tuesday March 27, 2018 @04:40PM
(#16692530)
Guards were brand new in the 90s. Unless you're going to argue programming started in the 90s, your point is irrelevant.
If it was this simple we wouldn't be still arguing about coding styles decades after they were invented. I know few old programmers that I respect very much, and they don't agree about the perfect coding style, not even simple stuff, like braces in separate lines or not.