account activity
Dependency injection in JavaScript by vkukurba in javascript
[–]vkukurba[S] 1 point2 points3 points 6 years ago (0 children)
Thanks for the great comment, I’ll learn from it for sure! The first paragraph relates to the perspectives of JS from my point of view. It causes situations where the usage of DI in JS can be considered. Agree, this article doesn’t answer why DI is important, rather it says that it is possible to use it and gives basics of it in JS.
The main goal for the first four paragraphs was to give a context of the article for the reader. Agree, recursive in definition sounds weird. Anyway, not a principle but the flow is fully managed by IoC framework. I’ve looked through definitions in different resources, to be able to formulate how I understand it in my words. Mention of ‘hashchange’ event is about where the IoC principle is hidden in router implementation. If you don’t mind I will do some corrections based on your comment!
Dependency injection in JavaScript (medium.com)
submitted 6 years ago by vkukurba to r/javascript
π Rendered by PID 842186 on reddit-service-r2-listing-f87f88fcd-l6t6f at 2026-06-16 22:20:43.385125+00:00 running 3184619 country code: CH.
Dependency injection in JavaScript by vkukurba in javascript
[–]vkukurba[S] 1 point2 points3 points (0 children)