News Feed
Sections




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

Jose Anthony's Blog:
PHP Code review checklist
December 07, 2010 @ 09:11:37

Jose Anthony has post together a great list of tips you can use when performing a PHP code review. You can also use it when preparing for a review to keep things going as smooth as possible.

I love to do code reviews because it give me chance to see how other people write code and improve mine also. I have seen many people who are afraid of doing code review. Which made think of creating a code review checklist for php. Please note this is not full checklist for code review and following all the conditions in this will not end up in a great code. But following this will end up in code that can be maintained by others in the later stage of code development.

Some of the suggestions he has in the list include:

  • Always try to initialize the variable before using that in a function.
  • Never ever mix the php code and template (view). In ideal condition a view should not contain any logic.
  • In the case of a system crash never ever put up the error information that expose the internal behavior of the system.
  • Never allow bad code with some good comments
  • Always have an eye on the recursive functions.
3 comments voice your opinion now!
code review checklist opinion


blog comments powered by Disqus

Similar Posts

Chris Roane's Blog: PHP Programmers: Stop Whining and Shut-up!

PEAR Blog: PEAR2 standards, we would like to know what you think

The Codist Blog: Followup To: I Will Never Understand the Appeal Of PHP

Ibuildings techPortal: phploc: PHP Lines of Code

PHP in Action Blog: Bad code is good for you?


Community Events





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


podcast security library community package language framework composer release application install symfony tool introduction laravel series voicesoftheelephpant version interview opinion

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