[nodejs] Re: Dependency injection for Node.js. What do you think?

2014-01-10 Thread Alexey Petrushin
At last I can show concrete example proving that IoC may be useful, even in dynamic languages. I always liked the simplicity of IoC concept - You don't have to know anything about environment, you'll be called by someone when needed But all IoC implementations I saw did exactly the opposite -

Re: [nodejs] Re: Dependency injection for Node.js. What do you think?

2013-04-23 Thread Tim Boudreau
On Sunday, July 29, 2012 1:22:49 PM UTC-4, Alan Gutierrez wrote: 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#

[nodejs] Re: Dependency injection for Node.js. What do you think?

2013-04-20 Thread Scott Corgan
Easier? https://github.com/scottcorgan/Injector On Friday, July 27, 2012 7:45:48 AM UTC-7, Eldar wrote: Do we need this in Node? My answer is yes we need some (simple) way to specify the app level dependencies at runtime. Here is my take on thishttps://github.com/eldargab/node-runtime.

[nodejs] Re: Dependency injection for Node.js. What do you think?

2013-04-20 Thread Eldar
That was a crazy idea and my goal was to find simple and clear way to swap * fs* for *mkdirp* On Saturday, April 20, 2013 9:23:50 PM UTC+4, Scott Corgan wrote: Easier? https://github.com/scottcorgan/Injector On Friday, July 27, 2012 7:45:48 AM UTC-7, Eldar wrote: Do we need this in Node?

[nodejs] Re: Dependency injection for Node.js. What do you think?

2013-03-23 Thread Alexey Petrushin
I recently wrote Micon https://github.com/alexeypetrushin/miconjs simple Dependency Injector, it's designed for server use, not browser. On Friday, July 27, 2012 6:45:48 PM UTC+4, Eldar wrote: Do we need this in Node? My answer is yes we need some (simple) way to specify the app level

[nodejs] Re: Dependency injection for Node.js. What do you think?

2013-03-23 Thread mgutz
I thought about this the other day and it seems to me, if you were to use something like AMD (require.js), your container would be a simple configuration. This line is basically asking a container to provide a data provider with an id. define(['dataProvider'], function(provider) { });

[nodejs] Re: Dependency injection for Node.js. What do you think?

2012-07-29 Thread Eldar
Yeah, the topic's name is completely wrong. I realized it just right after posting but couldn't fix. What I actually mean is: Look, require('foo') is nothing but global var 'foo' except that it is scoped on module's level. Typically it is set by Node depending on your dirs layout. But why

Re: [nodejs] Re: Dependency injection for Node.js. What do you think?

2012-07-29 Thread Alan Gutierrez
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`

[nodejs] Re: Dependency injection for Node.js. What do you think?

2012-07-28 Thread jg
No. On Friday, July 27, 2012 9:45:48 AM UTC-5, Eldar wrote: Do we need this in Node? My answer is yes we need some (simple) way to specify the app level dependencies at runtime. Here is my take on thishttps://github.com/eldargab/node-runtime. Please checkout and let me know how do you