Dependency Injection: a discussion of the pros and cons

Tony. Please answer this: Do you understand why I am asking for examples? We are essentially comparing different methodologies here and the only way to do that is to fully understand them with a bare-bones example that is separated from anything unrelated.

In science this is known as a “fair test” by only changing one variable at a time. To analyse the benefits of one method over another we must be able to see both methods producing the same result knowing that nothing else is interfering with the test. We can then analyse how well they performed relative to one another.

Just saying “My method is better” without this due process is arrogant and ultimately pointless.