PHP best practices - The dos and don'ts
talks.php.net
talks.php.net
Great way to get people to read your blog. Not to mention the horrid UI even when I fire up the fox...
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 ...
Probably much easier to write secure, fast, elegant code when it doesn't need to do anything or interact with users...
They named their variables $int, $string and $bool...
Use commas with 'echo' instead of dot concatenation
Where possible use ++$i instead of $i++
Use the class of ctype functions to check strings
Lots of slides here: http://talks.php.net/