News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
Good and Bad PHP Code
May 28, 2007 @ 09:02:00

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).

1 comment voice your opinion now!
good bad example list structure consistency portability security good bad example list structure consistency portability security


blog comments powered by Disqus

Similar Posts

PHP.net: PHP 5.6.8, 5.5.24 & 5.4.40 Released (Security Fixes)

Andi Gutmans' Blog: Inside Zend Server: Linux Take 2 - Examples

Vance Lucas' Blog: Practical Uses for PHP 5.3 Closures

PHPClasses.org: Is Your OAuth 2.0 Application Secure?

Derick Rethans\' Blog: #ezcomponents/freenode


Community Events

Don't see your event here?
Let us know!


version introduction framework composer performance release opinion api voicesoftheelephpant php7 podcast library laravel example community series conference symfony2 extension interview

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