Re:PHP best practices - The dos and don'ts
by troels on Saturday January 05, 2008 @01:52PM
(#95172)
> Exceptions leak a little bit of memory when thrown
So their suggestion for dealing with a limitation of the language implementation, is to not use a feature? Great.
Also, teaching people to do ridiculous sub-optimisations, like using ++$i instead of $i++ isn't really what I think of as best practice. Or telling people to avoid OO because it's slow. Now I know, where those poor newbies get this stuff from ...
So their suggestion for dealing with a limitation of the language implementation, is to not use a feature? Great.
Also, teaching people to do ridiculous sub-optimisations, like using ++$i instead of $i++ isn't really what I think of as best practice. Or telling people to avoid OO because it's slow. Now I know, where those poor newbies get this stuff from ...