---
title: "Discussion on \"Dependency Inversion Principle, Dependency Injection, and Service Locator. Are they the same?\" | Hashnode"
description: "Discussion on \"Dependency Inversion Principle, Dependency Injection, and Service Locator. Are they the same?\". Originally published on Medium\nSo, let’s educate ourselves and discover what is what.\nLet’s assume we make a blogging app. Something similar to Medium.\nWe have several classes :StoryViewStoryController (or StoryViewModel if you prefer)StoryServiceFir..."
url: "https://hashnode.com/posts/dependency-inversion-principle-dependency-injection-and-service-locator-are-they-the-same/671784eeb08d7d294ac34cf9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Dependency Inversion Principle, Dependency Injection, and Service Locator. Are they the same?](https://easy-flutter.hashnode.dev/dependency-inversion-principle-dependency-injection-and-service-locator-are-they-the-same?utm_source=hashnode&utm_medium=feed)

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...

Oct 22, 2024 · 3 min read · easy-flutter.hashnode.dev  
Read the article

-   [#flutter](https://hashnode.com/tag/flutter)
-   [#dependency-injection](https://hashnode.com/tag/dependency-injection)
-   [#service-locator](https://hashnode.com/tag/service-locator)
-   [#dependency-inversion-principle](https://hashnode.com/tag/dependency-inversion-principle)

## Written by

[Yuriy Novikov](https://hashnode.com/@bigbott)

@bigbott

  
[View profile](https://hashnode.com/@bigbott)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
