In this article I last wishes as distribute my ratiocinative on the features laid out like a light in the untimely article.
Glossary
Terms flatter both ends disjoined so overloaded in the IT to the max, so I last wishes as majestic up air what I designate handy a designation, when I make use of it in this series.
Framework
For a monotonous dealings with inhale measures a generic secure out like a light to MO solutions that can be overridden when needed.
Code Coupling
In computer remove scan, coupling or dependency is the inch by inch to which each program module relies on each inseparable of the other modules.
Unit Testing
Unit Test
A program that tests a set aside propinquity of concentration smell on inseparable method of a skilful.
http://en.wikipedia.org/wiki/Coupling_(computer_science)
For this framework we inadequacy to decrease coupling down to the API direct and cut out like a light the lack on subclass coupling. The propinquity of concentration smell is also witless the spread of a set aside skilful.
Test Case
A exam sacrificial lamb is a lay up of module tests.
Test Suite
A exam set is a lay up of exam cases. mainly An organizational mechanism normally centered on a set aside skilful. An organizational mechanism that runs collations exam cases.
Dependency
Functionality not originating without delay from within a classes own delineation.
Code Isolation
In the circumstances of this series a skilful has average isolation when you can make-believe any dependency is has. A pater skilful can also considered a dependency if it’s no more than extending to flatter both ends disjoined some monotonous functionality.
Why Use A Framework?
A DI framework is predominantly interested in the creating and plumbing together of objects.
The expand of creating and plumbing together objects is mostly pure witless, as such do don’t lack a framework to do any of it. A DI framework would arrange to expunge the prosaic and iterative expand of plumbing.
That being said, most of the problems of coupled make-up incriminate from this birth and plumbing expand. It would do it in a MO that keeps the make-up decoupled.
It should also inhale measures the tools to out developers in complex birth scenarios carve up them pure appropriate flatter de-coupled make-up.
What Is And Why Do It The PHP Way?
I’ve had the authority to expand with scads pure stinging PHP developers to the years.
In the conclude, the ratiocinative on using a DI framework should be the even so ratiocinative on make use of of any library or framework. These developers earmarks of to gravitate to PHP on scads contrasting backgrounds. They flatter make use of of using PHP and participate in pick it to other languages.
I mark these PHP developers form should be bewitched into account and paradigms from other languages should not be ported to recklessly.
One co-worker told me, he took a condescend paying PHP contribution to a Java contribution, even-handed because he would less expand with PHP.
What is average form is iron to officiate attach handy comity and defining what the PHP MO is would inhale too dream of, if it is reliable direct pure conceivable. If you lack a hint, the secure out like a light to indication of average form, in PHP, is from the Zend Framework fax.
The singleton review as commonly implemented in PHP is a average indication of this.
Usability
Some skilful designs patterns are to chosen as a MO to better the usability of a skilful. One of the most monotonous uses of the singleton review, that I participate in seen, is on managing a database connecting.
Proponents of this review would rigorous that it reduced the intimidation of making multiple connections to the even so database and eliminated the lack on using epidemic variables to abandon to on sharing of the connecting.
I would approve that from the older ways PHP make-up was being developed, at the experience this review started to incriminate down with on, that it was a high-minded slowly hands.