News Feed
Jobs Feed
Sections




News Archive
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

Symfony Blog: New symfony security policy

Acunetix.com: Web Site Security Center

Chris Shiflett's Blog: PHP Quick Reference

Richard Miller's Blog: Essential PHP Security

Ibuildings Blog: Zend_Paginator: First Impressions


Community Events









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


functional introduction framework zendframework2 unittest event opinion composer language development release interview testing api object podcast example code tool community

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