You again?

No we don’t want to avoid conditional branches, at least not as often as you keep saying. You are not the person changing your code a year from now. How much time do you think I will allow a programmer to add a branch? The few hours it takes to add the switch, or the three days it takes to figure out what on earth you did just for the sake of avoiding something that is perfectly readable to others?

I used the argument in a different context today already but I’ll do it again: you are not Edsger Dijkstra, and eliminating if statements this way is not the 21st century version of ‘goto considered harmful’.

CEO at Schinchoku and software architect at Delphino Consultancy B.V. — writing about software, and about the Shinchoku startup.