News Feed
Sections




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

Alan Knowles' Blog:
Code Reviewing.
August 21, 2006 @ 07:56:39

In a great new post from Alan Knowles he takes a look at code reviewing, specificaly in a PHP environment.

He breaks the post up into phases (one through four) with the steps outlined along the way (including the "oh sh*t, it's getting urgent, we better fix the delivered code and make it work well enough for the client to start testing" phase). Phase four is the largest, being the bug finding and fixing stage, some of the more intensive (and sometimes numbing) times of development.

He also includes a good, long list of some of the codeing standards he's accumulated over time, including:

  • Not creating PHP includes with functions in them!
  • Never hard code email subjects etc. in code, use templates.
  • Not using libraries that where not specified.. or using non-PEAR libraries when PEAR ones are available...
  • Everything extends the base class, even code run via cron jobs.

He also talks about using print rather than echo, exiting on XMLHttpRequest calls, shortcuts in Javascript, and cloning dataobject arrays over creating simple structs.

1 comment voice your opinion now!
review phase coding standards list mistakes review phase coding standards list mistakes


blog comments powered by Disqus

Similar Posts

Michelangelo van Dam's Blog: Book review: Zend Studio for Eclipse - Developer's Guide

Stefan Mischook's Blog: Book Review: PHP 5 in Practice

PageChain.net: 15 Great Places To Go To Learn PHP Right Now

Asvin Balloo's Blog: 10 useful PHP PEAR packages

PHPImpact Blog: 20 MediaWiki Extensions You Should Be Using


Community Events





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


threedevsandamaybe wordpress bugfix framework release developer introduction project podcast configure laravel series language application list api code community library interview

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