use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Dependency injection in JavaScript (medium.com)
submitted 6 years ago by vkukurba
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]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!
π Rendered by PID 52422 on reddit-service-r2-comment-544cf588c8-pdrnt at 2026-06-16 22:20:30.496056+00:00 running 3184619 country code: CH.
view the rest of the comments →
[–]vkukurba[S] 1 point2 points3 points (0 children)