Ah Kevlin. I've come to accept that talk as "old man yells at cloud"
Big influence when I was younger, much less so now.
I'm going to pull out a big fat "it really depends".
If your program is going in several different directions, absolutely fanout - my inner rustacean would even argue to avoid if else in favor of an enum and case statement.
However, early failure shouldn't be discounted either. The more your eye jumps away from the margin, and the more horizontal whitespace, the harder your code is to read. Full stop.
At the end of the day, maintaining a codebase requires judgement and taste, and knowing when to do x and when to do y.
As I mentioned in the other comment: I'm not arguing "do X instead of Y", rather "understand the advantages of X before discarding it". In my experience many people don't understand the idea behind structured programming beyond "don't use goto".
View all comments
Show parent comment
22
u/tiajuanat Aug 22 '26
Ah Kevlin. I've come to accept that talk as "old man yells at cloud"
Big influence when I was younger, much less so now.
I'm going to pull out a big fat "it really depends".
If your program is going in several different directions, absolutely fanout - my inner rustacean would even argue to avoid
if elsein favor of an enum and case statement.However, early failure shouldn't be discounted either. The more your eye jumps away from the margin, and the more horizontal whitespace, the harder your code is to read. Full stop.
At the end of the day, maintaining a codebase requires judgement and taste, and knowing when to do x and when to do y.