News for hackers. Stuff that matters.
Re:Programming Patterns I Like by quadcore on Saturday June 29, 2019 @03:07AM (#20311221)
Wrong, because once you would see the code with the if statements, you would discover bugs and that the logic is convoluted. You would refactor it into a much simpler program.
Re:Programming Patterns I Like by nosianu on Saturday June 29, 2019 @07:54AM (#20312063)
Exactly! Just add early returns when appropriate and all becomes much clearer.

Also beware of people with strong opinions about way too general things in areas where specific things are.. specific, and where discussions of the sort you started are nearly almost a bad sign. Without something concrete to solve/look at these discussions are more religious in nature. You can say whatever, no way to prove or, worse, disprove. When people get into heated discussions there is a good chance that there is no practical test possible because the discussion is not about anything concrete but about "ideas" - where everybody has different ones for the same keyword(s).

Re:Programming Patterns I Like by Buttons840 on Saturday June 29, 2019 @03:20AM (#20311273)
We can all agree that convoluted logic is bad, but there are functions with early returns which are not convoluted.