News Feed
Sections




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

Stuart Herbert's Blog:
Isolate To Eliminate
October 12, 2009 @ 08:12:02

In his most recent post Stuart Herbert has a suggestion that can make your development life simpler and make debugging less of a headache down the road - isolation.

If you know the code well, perhaps you can make an intuitive leap to immediately jump to where the bug is. But how do you go about tracking down a bug when intuition doesn't help? The nature of all code is that larger systems are built from smaller underlying systems and components. [...] Apart from being a strategy that allows you to work on code you've never seen before, this approach also has the advantage that it is evidence-based.

He suggests the division of your application down into the base level of components, sets of "logical points" that make it both simpler to test and more modular for the future. He gives an example of tracking down a bug in a system like this and notes that, with a good set of tests, it can be much faster than some of the other, more traditional debugging methods.

0 comments voice your opinion now!
code isolate debug test


blog comments powered by Disqus

Similar Posts

Ilia Alshanetsky's Blog: 5.2.2RC1 Released for Testing

The Nerdery: Is my code compatible with PHP 5.4 or 5.5?

NETTUTS.com: Top 15+ Best Practices for Writing Super Readable Code

Adam Culp: Clean Development Series: Part 4, Rewrite dilemma

PHPBuilder.com: 10 Productivity-boosting Tools for Your PHP Development


Community Events

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


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

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