News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



SitePoint PHP Blog:
Good and Bad PHP Code
0 comments :: posted Monday May 28, 2007 @ 09:02:00
voice your opinion now!

On the SitePoint PHP blog today, Kevin Yank shares his thoughts in the form of a list for what makes for "good" and "bad" PHP code.

When interviewing a PHP developer candidate for a job at SitePoint, there is one question that I almost always ask, because their answer tells me so much about the kind of programmer they are. Here's the question: "In your mind, what are the differences between good PHP code and bad PHP code?"

Among the items on the list for the good side are things like: structure, consistency, security, and portability. He gives a bit of example code that shows the three levels of "goodness" in a script (using $_GET variables).

tagged with: good bad code example list structure consistency portability security good bad code example list structure consistency portability security



book job framework developer release conference PHP5 releases package security zendframework PEAR zend database code pecl ajax application cakephp mysql

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework