nkohari / forge Goto Github PK
View Code? Open in Web Editor NEWa dependency injector for node.js
License: Other
a dependency injector for node.js
License: Other
The dependencies are not getting injected into the class constructor
of the new ES6 class. Type dependencies managed by Forge and ctor args using with()
do not get injected.
First things first: I'm fairly certain that the existence of this framework will be controversial. The general sentiment is that in a loosely-typed, dynamic language like JavaScript, framework-aided dependency injection is unnecessary.
First, those people are dumb. There's nothing about Node or Javascript that makes DI any less applicable.
Second, CoffeeScript is to JavaScript as C++ is to Assembly. Although it compiles to Javascript... its not Javascript. This is an important distinction, I think... along the lines of ordering hot cocoa and receiving coffee.
Would be to nice to be able to either have a custom action on a missing dependency or simply provide one manually. I would actually seek to have a mixed pre-defined and lazy loading arrangement (plugins). This should be settable on forge's instance.
I would like to have this function to create scoped dependencies that will be changed for a different set of dependencies with the same name. I would hate to use unbind
for this.
PS. Very nice project. Clean, well documented and does not constrain the user unlike other DI frameworks like angular/di.js
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.