Ever wondered what the people that really know PHP think about for their code? What tips would they give you if they could look over your shoulder and tell you to replace that small switch with a few ifs for a performance boost?
Well, one of the most famous PHP coders has done just that - Rasmus has released a Tips and Tricks PDF file that contains quite a few tips that you can use in your code. The topics they cover range from regular expressions to sample code for a dynamic image generator. This is really quite an exhaustive listing, and could potentially make a lot more of the PHP code that's out there a little more manageable.
This PDF would be a good read for someone who has "hit the wall" (so to speak) in their PHP development, wondering what they can do to make things easier on the server, and easier on themselves. I know too many developers that write these huge classes that are just excessive - and does the same things that could be done in 5 lines if written correctly (well, maybe not really - but you get the idea). I know I as a developer tend to over-analyze a script and want to work it into this big thing - any of you tend to do that too?
Thanks to PHPEverywhere for the link.




