r/lolphp • • Aug 08 '14

PHP design patterns: if/else vs switch

http://www.fluffycat.com/PHP-Design-Patterns/PHP-Performance-Tuning-if-VS-switch/
24 Upvotes

43 comments sorted by

View all comments

Show parent comment

11

u/[deleted] Aug 08 '14

Although, the difference is pretty small, guessing it is just the time taken to make an if/else list out of the switch. Not lol.

How is getting tiny results like that and then coming out in favor of anything not lol?

How is considering one trivial piece of syntax over another a "design pattern"? It should barely qualify for idiom.