Hacker News new | ask | show | jobs
by klochner 4472 days ago
I still can't decide if angular dependency injection is more amazing or revolting.

It's magic, it's non-intuitive, it breaks the standard paradigm that function arguments have no external significance, and it doesn't add much real value by just saving one extra line per function - inject(fn, ...)

On the other hand, it's elegant if you ignore all the above criticisms.

1 comments

just the inferred dependency injection.

and it's warped. as i stated in my article.

i don't mind the DI myself too much, but then, I also prefer commonJS =P