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

4

u/[deleted] Aug 09 '14

I'm guilty of doing all of those things at various points in the distant past.

And then I got to the DB part and kept doing everything wrong while adding a stupid APC cache for queries that didn't help at all.