News Feed
Sections




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

Jani Hartikainen's Blog:
Common programming errors and how to avoid them
October 08, 2009 @ 14:42:01

In a new post today Jani Hartikainen has pointed out a few errors that developers commonly make when writing and debugging their code.

Back in august, I introduced the error tracking challenge. While it didn't get as much participation as I had hoped for, I did manage to collect some results. In this post, I'll go through the most common ones, and suggest some approaches to avoiding them. Suggest your own errors and tips in the comments!

He's included issues in three major categories - boolean logic errors, typos/omissions and some common debugging mistakes. Inside each are some suggestions to help them make a less frequent appearance in your code: things like splitting up conditionals for readbility/ease of maintenance and being generally more careful in your development to reduce logic and small errors that could be picked up by the simplest syntax check.

0 comments voice your opinion now!
common error avoid opinion


blog comments powered by Disqus

Similar Posts

International PHP Magazine: Poll Question: The Biggest Advantage of PHP 5 is?

Ilia Alshanetsky\'s Blog: Another unserialize() abuse

Kevin van Zonneveld: It's Almost 2014 and We Are Still Committing Broken Code

Brandon Savage's Blog: Why Coding Tests Are A Bad Interview Technique

Pierre-Alain Joye's Blog: htscanner, new release, ISP needs?


Community Events





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


community api symfony zendserver deployment developer series bugfix introduction framework laravel list release threedevsandamaybe opinion podcast interview language library tips

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