The original original may be Christopher Seiwald's "seven pillars of pretty code", which among other things suggested to do your ifs first and get rid of the rare cases, then handle only the common case with more complicated logic in the bottom part of each function.
An excellent article that you have to search for.
javatuts•8mo ago
Just because someone published an article on micro-optimization, does that mean we all have to follow it blindly?
gnabgib•8mo ago
Or the recent repeat (568 points, 9 days ago, 197 comments) https://news.ycombinator.com/item?id=44013157
Arnt•8mo ago
An excellent article that you have to search for.
javatuts•8mo ago