News Feed
Sections




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

Felix Geisendorfer's Blog:
Test Driven Development in Real World Apps
September 13, 2006 @ 07:31:48

Felix Geisendorfer shares, in this new post to the ThinkingPHP blog, some of his experiences with writing his code using test driven development.

So far I've had tons of fun trying to create php code using test driven development. It caused my code to become a lot more structured/consistent because writing the tests shows you interfaces problems right away. This is because the process of writing the test forces you to think a lot more about *how* you want to use some class / piece of code vs. your traditional "how can I get task x done"-thinking.

He also points out another benefit - it makes refactoring the code even easier (so there's more of a likelyhood that you'll use it again and again). He talks specifics about a library that he's been working on and the processes he's gone through to make things work with the testing versus his normal development cycle.

0 comments voice your opinion now!
test driven development application library refactor structure test driven development application library refactor structure


blog comments powered by Disqus

Similar Posts

MegaLeecher.net: Decoding CAPTCHA using PHP | Hypertext Preprocessor

Elizabeth Smith's Blog: Compiling PHP5.2 on Windows with .Net toolchain - is it even possible?

PHPKitchen: Seagull 0.6.1 Released

Phil Sturgeon: Build API's That You Wont Hate: Part 1 - Useful Database Seeding

PHP.net: PHP 5.5.0RC1 is available


Community Events





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


api tips laravel bugfix interview language library list symfony community framework install introduction voicesoftheelephpant opinion deployment series podcast package release

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