News for hackers. Stuff that matters.
Re:Dependency Injection is a Virtue by rapind on Monday January 07, 2013 @03:25PM (#5023030)
Which if we're going to be honest is a hugely overhyped issue.

Note: I base this on how often I've swapped out the database for a project in the past 15 years (maybe twice?) of writing mostly database backed software.

Re:Dependency Injection is a Virtue by mpweiher on Monday January 07, 2013 @09:00PM (#5024499)
It's not the swapping, it's the (configuration) complexity and test performance, among other issues. See http://www.confreaks.com/videos/759-rubymidwest2011-keynote-....

I particularly like the example he gives near the end of always thinking they need to add the database and finally, after shipping to a bunch of customers, figuring out that they didn't actually need it.

In terms of test performance, I frequently see blog posts about reducing the time for a couple of hundred tests from half an hour to 15 minutes.

    marcel@localhost[~]time testlogger -a MPWFoundation ObjectiveSmalltalk ObjectiveXML EGOS EGOS_Cocoa MPWSideWeb
    tests:1: warning:  1055 tests (of 1055) executed, 0 failures (100 % success rate)

    real 0m2.939s
    user 0m1.607s
    sys  0m0.438s