Yuriy Novikoveasy-flutter.hashnode.dev·Oct 22, 2024Dependency Inversion Principle, Dependency Injection, and Service Locator. Are they the same?Originally published on Medium So, let’s educate ourselves and discover what is what. Let’s assume we make a blogging app. Something similar to Medium. We have several classes :StoryViewStoryController (or StoryViewModel if you prefer)StoryServiceFir...DiscussFlutter
Muhammad Abubakarabubakarwebdev.hashnode.dev·Jun 16, 2024A Simple Guide to the Dependency Inversion PrincipleHigh-level modules should not depend on low-level modules. Both should depend on abstractions. Abstractions should not depend on details. Details should depend on abstractions. This is a well-known principle called the “Dependency Inversion Principle...Discussdependency inversion principle