Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Dependency injection for Node.js. What do you think?

Received: by 10.236.185.103 with SMTP id t67mr531867yhm.49.1343582588063;
        Sun, 29 Jul 2012 10:23:08 -0700 (PDT)
X-BeenThere: nodejs@googlegroups.com
Received: by 10.236.121.203 with SMTP id r51ls8390373yhh.5.gmail; Sun, 29 Jul
 2012 10:22:54 -0700 (PDT)
Received: by 10.236.91.229 with SMTP id h65mr4907984yhf.24.1343582574089;
        Sun, 29 Jul 2012 10:22:54 -0700 (PDT)
Received: by 10.236.91.229 with SMTP id h65mr4907982yhf.24.1343582574079;
        Sun, 29 Jul 2012 10:22:54 -0700 (PDT)
Return-Path: <a...@prettyrobots.com>
Received: from mail-gg0-f172.google.com (mail-gg0-f172.google.com [209.85.161.172])
        by gmr-mx.google.com with ESMTPS id l23si2124197yhk.6.2012.07.29.10.22.54
        (version=TLSv1/SSLv3 cipher=OTHER);
        Sun, 29 Jul 2012 10:22:54 -0700 (PDT)
Received-SPF: neutral (google.com: 209.85.161.172 is neither permitted nor denied by best guess record for domain of a...@prettyrobots.com) client-ip=209.85.161.172;
Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.161.172 is neither permitted nor denied by best guess record for domain of a...@prettyrobots.com) smtp.mail=a...@prettyrobots.com
Received: by ggnc4 with SMTP id c4so4156391ggn.3
        for <nodejs@googlegroups.com>; Sun, 29 Jul 2012 10:22:54 -0700 (PDT)
        d=google.com; s=20120113;
        h=date:from:to:subject:message-id:references:mime-version
         :content-type:content-disposition:in-reply-to:user-agent
         :x-gm-message-state;
        bh=pEwuXHvMxY8N3JfjayKpSb29FkR5sTi7/8VDvl9Y0U0=;
        b=MbR2ASc6FEHsyZ374EWhELIV3wZWqO6EGCvWNgjgmnWqNLAI3UCp6RUiTCs94gz+aM
         I1ZDexLUc/Mr77f9BEFUdlHl3iZFTbnZAz5diMoh2YokEogOfo7uJaYwn2ytc1ODD8wp
         GmhJtdtXSizNyH3Pp9HW1QHe3R0o+eNREMOJ50Z6wznlDYbcMAKMwOyvkXIntW2YL7rC
         ks9aCfTDPxIK7qD70qLUCZRzucK1B64vI1uaau7di5lME0BMRzu2zIVKwKfgEik6d0II
         eMKmSM3MqARpwqjaD6pN/3ob+9UA3ALyULw2grK0uA80yuWHzH6nLcTTZEv/mWDz/Cpo
         RlEQ==
Received: by 10.42.114.4 with SMTP id e4mr5178243icq.25.1343582573794;
        Sun, 29 Jul 2012 10:22:53 -0700 (PDT)
Return-Path: <a...@prettyrobots.com>
Received: from gmail.com (adsl-99-30-97-78.dsl.sfldmi.sbcglobal.net. [99.30.97.78])
        by mx.google.com with ESMTPS id a10sm9750219igd.1.2012.07.29.10.22.53
        (version=TLSv1/SSLv3 cipher=OTHER);
        Sun, 29 Jul 2012 10:22:53 -0700 (PDT)
Date: Sun, 29 Jul 2012 13:22:49 -0400
From: Alan Gutierrez <a...@prettyrobots.com>
To: nodejs@googlegroups.com
Subject: Re: [nodejs] Re: Dependency injection for Node.js. What do you think?
Message-ID: <20120729172249.GC34...@gmail.com>
References: <ef102c88-93e2-4fbe-b405-c9ba8c3ea5de@googlegroups.com>
 <0610e8c0-71f5-44f7-9474-dd297d759ed9@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <0610e8c0-71f5-44f7-9474-dd297d759ed9@googlegroups.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Gm-Message-State: ALoCoQk32Vdj+wF9rNS57sBO7ZPyZEukXjPIdZwGogDqxuL2FwJlVEdQYOEpzm9z1ZDjR0Csibsf

On Fri, Jul 27, 2012 at 10:25:53PM -0700, mixu wrote:

> I've never really needed to dependency inject into third party modules. If I
> did, I'd rather fork the third party dependency than do some sort of dynamic
> solution.

That's part of what has changed with development since the rise of `git` and
`GitHub`. IoC tries to address the complexity of project lifecycles using design
patterns, but these days we tend to that through communication; issues and pull
requests.

The ability to get a patch into the source has given programmers more confidence
in their dependenies. They are no longer deferring decisions by "programming to
interfaces", but instead making a commitment to a dependency. C# and Java are
afraid of commitment, they see it as a potential hostage situation.

--
Alan Gutierrez - http://github.com/bigeasy - http://twitter.com/bigeasy