naneau / gerenuk Goto Github PK
View Code? Open in Web Editor NEWGerenuk - A Friendly Node.JS Dependency Injection Container
Home Page: http://naneau.nl/
Gerenuk - A Friendly Node.JS Dependency Injection Container
Home Page: http://naneau.nl/
We may want to inject params after a config has been loaded, for instance. It'd be neater if you could inject params into the scope that matters to them. If you wanted to set up a database, you might want to put the connection info in a different file than the adapter structure.
Right now you need to create a package if you need to do an async callback for something that you need to do an operation more (and nothing more than that) for temp. storage. This is less than ideal.
injectCallback would probably suffice. In that case you would not need to do a require either, so this change might not be trivial, since all services need a require right now.
It's preferable to move as many exceptions away from callbacks as possible since they are harder to test for (and are bad form in general). Additionally it might be clearer in a program flow if the DI fails as soon as you try to load something invalid into it.
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.