---
title: "Discussion on \"Dependency Injection Finally Made Sense When I Stopped Thinking Like a Developer\" | Hashnode"
description: "Discussion on \"Dependency Injection Finally Made Sense When I Stopped Thinking Like a Developer\". A practical explanation of Dependency Injection, why writing extra interfaces matters, and how DI protects your code from future change."
url: "https://hashnode.com/posts/dependency-injection-finally-made-sense-when-i-stopped-thinking-like-a-developer/69907f42f6e377a8e908003a"
---

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

Discussion

# [Dependency Injection Finally Made Sense When I Stopped Thinking Like a Developer](https://ujjwalkar.hashnode.dev/dependency-injection-finally-made-sense-when-i-stopped-thinking-like-a-developer?utm_source=hashnode&utm_medium=feed)

A practical explanation of Dependency Injection, why writing extra interfaces matters, and how DI protects your code from future change.

Feb 14 · 3 min read · ujjwalkar.hashnode.dev  
Read the article

-   [#dependency-injection](https://hashnode.com/tag/dependency-injection)
-   [#backend-developments](https://hashnode.com/tag/backend-developments)
-   [#backend-development](https://hashnode.com/tag/backend-development)
-   [#backend-engineering](https://hashnode.com/tag/backend-engineering)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#front-end-development](https://hashnode.com/tag/front-end-development)
-   [#frontend](https://hashnode.com/tag/frontend)
-   [#backend](https://hashnode.com/tag/backend)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#software-development](https://hashnode.com/tag/software-development)
-   [#software-engineering](https://hashnode.com/tag/software-engineering)
-   [#software-architecture](https://hashnode.com/tag/software-architecture)

## Written by

[Ujjwal Kar](https://hashnode.com/@ujjwalkar21)

@ujjwalkar21 · Kolkata, India

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

Versatile Software Engineer specializing in Full Stack Development with a proficiency in executing Data Science projects.

Associate Software Engineer with expertise in Full Stack Development and hands-on experience in executing Data Science projects. Seeking opportunities to apply and enhance knowledge in real-world problems.

## Responses 1

Markdown supported · ⌘↵ to post

[Tiffany Spark](https://hashnode.com/@markupandmatcha)

[Feb 17](https://hashnode.com/posts/dependency-injection-finally-made-sense-when-i-stopped-thinking-like-a-developer/69907f42f6e377a8e908003a/comment/6994f1b4e2a1742da7f60a7d)

the chef analogy is brilliant, honestly this is the clearest explanation of DI i have come across. the point about coding for change tomorrow not just today is the thing that finally made it click for me a while back. bookmarking this one for whenever i have to explain it to someone else.
