<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/tags/dependency-injection/best-of/2021" -->

---
title: Best Dependency Injection posts of 2021 | daily.dev
description: The most upvoted Dependency Injection posts of 2021, curated by the daily.dev community.
canonical: https://daily.dev/tags/dependency-injection/best-of/2021
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:url: https://daily.dev/tags/dependency-injection/best-of/2021
og:type: website
og:site_name: daily.dev
og:title: Best Dependency Injection posts of 2021 | daily.dev
og:description: The most upvoted Dependency Injection posts of 2021, curated by the daily.dev community.
og:image: https://media.daily.dev/image/upload/s--VAY5ToZt--/f_auto/v1724209435/public/daily.dev%20-%20open%20graph
---

# Best of Dependency Injection — 2021

1. 1  
[](/posts/features-of-clean-code-architecture-node-js-lsxh3bihh "Features of clean code architecture | Node.js")  
Article  
![Avatar of devto](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/devto)DEV · 5y  
Features of clean code architecture | Node.js  
Software architecture is primarily the structure of the software components to be arranged in a purposeful and efficient system. The goal of software architecture is to minimize the human effort required to build and maintain software systems. Clean code architecture, created by Robert Cecil Martin (a.k.a Uncle Bob), shines.  
45
2. 2  
[](/posts/dependency-injection-in-typescript-jofhxh3b9 "Dependency Injection in TypeScript")  
Article  
![Avatar of gc](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/gc)gitconnected · 5y  
Dependency Injection in TypeScript  
Dependency Injection in TypeScript is a way to separate domain and persistence layers in Node apps. We can use TypeScript decorators to create our own DI service with help of the Dependency Manager. We have Logger classes we want to inject and DependencyManager which stores all needed mappings.  
40
3. 3  
[](/posts/understanding-dependency-injection-in-javascript-ijuh2fcnb "Understanding Dependency Injection in JavaScript")  
Article  
![Avatar of devto](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/devto)DEV · 5y  
Understanding Dependency Injection in JavaScript  
Dependency Injection is the technique in which an object receives other object in which it depends on. In JavaScript, the dependency is abstracted even from the caller and given to a new object, which is usually called an Injector. JavaScript provides us lots of flexibility when it comes to grouping functionalities. Many times, you won't even need to use a class and just using a function might be enough.  
11

[See all Dependency Injection archives](/tags/dependency-injection/best-of)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"CollectionPage","@id":"https://daily.dev/tags/dependency-injection/best-of/2021#page","url":"https://daily.dev/tags/dependency-injection/best-of/2021","name":"Best Dependency Injection Posts of 2021","description":"The most upvoted Dependency Injection posts of 2021, curated by the daily.dev community.","isPartOf":{"@type":"WebSite","url":"https://daily.dev"}},{"@type":"ItemList","@id":"https://daily.dev/tags/dependency-injection/best-of/2021#items","numberOfItems":3,"itemListElement":[{"@type":"ListItem","position":1,"url":"https://daily.dev/posts/features-of-clean-code-architecture-node-js-lsxh3bihh","name":"Features of clean code architecture | Node.js"},{"@type":"ListItem","position":2,"url":"https://daily.dev/posts/dependency-injection-in-typescript-jofhxh3b9","name":"Dependency Injection in TypeScript"},{"@type":"ListItem","position":3,"url":"https://daily.dev/posts/understanding-dependency-injection-in-javascript-ijuh2fcnb","name":"Understanding Dependency Injection in JavaScript"}]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Tags","item":"https://daily.dev/tags"},{"@type":"ListItem","position":3,"name":"Dependency Injection","item":"https://daily.dev/tags/dependency-injection"},{"@type":"ListItem","position":4,"name":"Best of","item":"https://daily.dev/tags/dependency-injection/best-of"},{"@type":"ListItem","position":5,"name":"2021"}]}]}
```

