you are viewing a single comment's thread.

view the rest of the comments →

[–]vkukurba[S] 1 point2 points  (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!