News Feed
Sections




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

Kore Nordmann's Blog:
Evil bugs in your code
December 04, 2007 @ 11:52:00

Kore Nordmann has made a quick post to his blog about some "evil bugs" he's seen reoccurring in the code he writes and wanted to point them out so other developers might learn from them.

Those are 4 typical errors I introduced in my code, and spend some time debugging it, because I found them really hard to spot. Luckily, once I spotted the actual bug, I find it a lot easier the next time the typo occurs. Therefore I want to share those, so that I may save you some minutes of your life hunting stupid bugs.

His three contributions concern a "missing if", the addition of a random semicolon, operator precedence and a for loop that refuses to work. Others have contributed to the comments on the post as well.

0 comments voice your opinion now!
bug if semicolon operator precedence loop bug if semicolon operator precedence loop


blog comments powered by Disqus

Similar Posts

Matthew Turland's Blog: Zend_Form and Zend_Loader_PluginLoader SNAFU

Issociate.de Newsreader: phpBB mass-hack being prepared?

rooJSolutions Blog: Watch-out PHP 5.3.7+ is about.. and the is_a() / __autoload() mess.

Lukas Smith's Blog: RC testing and the README.UPDATE

PHPMaster.com: Learning Loops


Community Events

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


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

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