I'm really not sure if this is a good idea or a terrible idea...
We've gotten very used to Angular-style dependency injection. Since Angular has gotten so much traction, it seems to make sense to adopt a similar API.
I could pretty easily adjust the API to look like:
...but then there's artifacts (like a name for the module, or module dependencies) which don't seem to make sense for Node. There's no "multiple modules got loaded by the browser" thing - it's all just require(...) calls.
Guice-style bootstrapping seems to make more sense.
I'm really not sure if this is a good idea or a terrible idea...
We've gotten very used to Angular-style dependency injection. Since Angular has gotten so much traction, it seems to make sense to adopt a similar API.
I could pretty easily adjust the API to look like:
...but then there's artifacts (like a name for the module, or module dependencies) which don't seem to make sense for Node. There's no "multiple modules got loaded by the browser" thing - it's all just
require(...)
calls.Guice-style bootstrapping seems to make more sense.