2009/10/27 David Otton <phpm...@jawbone.freeserve.co.uk>:

> If you go with the first approach, you're writing code that you and
> anyone who comes after you can write useful tests for. The others, and
> you're denying maintenance programmers a useful tool.

I should have lead with this: the wikipedia article on Dependency injection

http://en.wikipedia.org/wiki/Dependency_injection

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to