r/javascript • u/mmaksimovic • Apr 07 '17
Opinionated Comparison of React, Angular2, and Aurelia
https://github.com/stickfigure/blog/wiki/Opinionated-Comparison-of-React%2C-Angular2%2C-and-Aurelia
59
Upvotes
r/javascript • u/mmaksimovic • Apr 07 '17
1
u/[deleted] Apr 08 '17
Nobody is asking you to write out hundreds of snippets, but you're not even willing to name the feature/technique you're supposedly referring to, which you could've done about a dozen times in the time it took you to repeat "go read the entire documentation, I'm so busy".
There are two weaknesses that pseudo-DI falls victim to. One is the one I mentioned: discriminating DI based on the object, or the layer it's in. The other is when you have to inject two instances of the same interface in the same object. So, let's say, we have another 30 objects, which should be able to ask for both
foo1andfoo2, which are both of type Foo. This is where containers crap out and it comes down to tag interfaces, or qualifier annotations, and everything goes to shit regarding reusable, decoupled code.