News for hackers. Stuff that matters.
Re:Avoid Else, Return Early (2013) by ajuc on Monday March 26, 2018 @09:42AM (#16678759)
This is like the 10 commandments. Good ideas mixed with stuff that is a matter of taste :)

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.

Re:Avoid Else, Return Early (2013) by dhimes on Monday March 26, 2018 @10:09AM (#16678988)
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. ;)

Re:Avoid Else, Return Early (2013) by ajuc on Tuesday March 27, 2018 @03:22AM (#16686101)
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.