4 ms·
I feel like these articles come up every few weeks. people don't understand angular (particularly why DI is useful) and criticize it for being verbose or confus
by rafekett 12y ago
I feel like these articles come up every few weeks. people don't understand angular (particularly why DI is useful) and criticize it for being verbose or confusing, usually using the provided sample code -- would it hurt to spend some time actually trying to understand the framework than to dismiss it on face because it looks kind of like something people don't like in Java?
- XorNot 12y agoThis would happen less if the sample code highlighted the benefits more. Sample code which shows me how complex something simple is kind of fails at that - and worse, it fails to let me grok why the way they're doing it is better. Where does it all fit in? What will this translate too? To some extent I wonder if we make the mistake of using "hello world" too readily, whereas what we want to do is show the end product and then start with what that does to simple processes to make it work.
- davexunit 12y ago"Dependency injection" is just a silly term for formal parameters. Wow, we can make a function more generic by minimizing the number of free variables! Who knew?
- seanmcdirmid 12y agoDependency injection is more like dynamic scoping, whereas most formal parameters are lexically scoped.
- davexunit 12y agoFair point, but that makes DI a really poor implementation of dynamic scoping.
- mac1175 12y agoSome people consider it verbose? Wow. After starting with backbone and then later on discovering angular, I can confidently say it is not as verbose as other well known frameworks (such as backbone).