---
title: "Ken Kopelson (@kenbkop) | Hashnode"
description: "Been a hardcore developer for 45 years. Read the latest articles by Ken Kopelson on Hashnode."
url: "https://hashnode.com/@kenbkop"
---

@kenbkop

# Ken Kopelson

@kenbkop · Joined November 2023

Been a hardcore developer for 45 years.

## Comments

[Contrary to what others have said, Dependency Injection is a mechanism that allows you to Provide an object from the root of your app, and then you can Inject it anywhere in your app that you need. Without this, we had to pass things like Props from the root, to its children, then to those children's children, etc., until the Prop arrived at the place where we wanted to use it. With DI, you just pass the Prop, Object, or whatever to the Provider, giving it a name string. Then, let's say you are 5 levels down in your component hierarchy, and you want one of the things you gave to the Provider. You just call Inject, giving it the name of the thing you want, and there it is. This mechanism is VERY handy. Vue.js provided a great implementation of this, but so do most other modern systems.](https://hashnode.com/posts/wtf-is-dependency-injection-javascript-edition/654a7afc9bd342528787b32e/comment/6553508c7d42152f2f1917df)

Comment · Article · Nov 14, 2023 · [Wtf is dependency injection? (JavaScript edition)](https://hashnode.com/posts/wtf-is-dependency-injection-javascript-edition/654a7afc9bd342528787b32e)
