News Feed
Sections




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

Mike Bernat's Blog:
My PHP Best Practices
October 08, 2008 @ 11:17:54

Mike Bernat has come up with a list of (eight things) his best practices when it comes to PHP development:

I suggest a more retro-active approach [than trial and error]. Studying, surrounding, and forcing yourself to abide by best-practice coding standards will yield surprising results in your applications despite the fact that it may seem like more work than it's worth.

Topics included in his list are things like:

  • Always develop with error reporting set at E_ALL and E_STRICT
  • Portability, Portability, Portability!
  • Don't over-think!
  • Validate & Sanitize your Inputs!

Check out the rest of the post for more suggestions and explainations.

0 comments voice your opinion now!
best practices suggestion trial error


blog comments powered by Disqus

Similar Posts

Andi Gutmans\' Blog: Fluent Interfaces

DevShed: Error Handling in PHP - Coding Defensively

Hardened-PHP Project: phpMyAdmin - error.php XSS Vulnerability

Till Klampaeckel' Blog: PHP parse errors with cgi and nginx

Daniel Cousineau's Blog: Quickie: Module-specific Error Controllers in Zend Framework (1.5)


Community Events

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


opinion list community example version podcast voicesoftheelephpant library unittest language api release series laravel video interview framework php7 introduction laravel5

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