Dependency Injection - The Magic Trick Behind Clean Code

  Рет қаралды 441

Netcreed

Netcreed

Күн бұрын

Пікірлер: 8
@netcreed
@netcreed Жыл бұрын
Ever stare at your code and think, "This spaghetti monster needs a diet!"? Tight coupling got you down? Worry not, fellow coders, for there's a secret weapon in your arsenal: Dependency Injection (DI) and Inversion of Control (IOC)! In this video, we'll dissect these powerful design patterns and show you how they can transform your codebase from a tangled mess to a modular masterpiece! We'll dive into: * What the heck are DI and IOC? * Why you should care (hint: cleaner code, easier testing!) * How to implement them in your projects (with real-world examples!) * Benefits and potential drawbacks (we'll be honest!) Get ready to unlock the secrets of clean code and say goodbye to tight coupling forever! Watch this video, leave a comment with your code questions
@stubb1qaz
@stubb1qaz Жыл бұрын
I love Dependency Injection. Its the only way you can program most primitive anti-pattern singleton with nobody realizing it! Create a dependency injection container that serves as your EVERYTHING hub and just pull data and functions from it.
@netcreed
@netcreed Жыл бұрын
Totally agree! DI can be a great way to manage singletons with better testability and maintainability. What are some best practices you've found for keeping those 'EVERYTHING hubs' clean and organized?"
@stubb1qaz
@stubb1qaz Жыл бұрын
You can have an actual architecture where data resides where it belongs and is accessible by architecturally limited scope of objects. Dependency injection often violates good design but allows you to violate it in the least bad way.
@PgEndeen-pf1fi
@PgEndeen-pf1fi Жыл бұрын
great video bro, but I would love if you could work a bit more on your pronunciation, maybe articulate more, keep it up !
@netcreed
@netcreed Жыл бұрын
Thanks man, I appreciate the feedback. I'm still learning and will definitely work on that more.
@kacperzmijak1462
@kacperzmijak1462 Жыл бұрын
activate your windows bro
@netcreed
@netcreed Жыл бұрын
surely I will.
Getting Started With TypeORM and MongoDB
12:08
Netcreed
Рет қаралды 305
"Clean" Code, Horrible Performance
22:41
Molly Rocket
Рет қаралды 937 М.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
2
44:35
izzadan
Рет қаралды 3
What is Dependency Injection?
6:48
Scott Bailey
Рет қаралды 120 М.
Mastering Dependency Injection In Golang
14:29
Anthony GG
Рет қаралды 53 М.
Why Use Design Patterns When Python Has Functions?
23:23
ArjanCodes
Рет қаралды 114 М.
15. Design Authentication Service ( LLD - JAVASCRIPT )
28:26
Web Fusion with Bharadwaj
Рет қаралды 476
Zelensky Announces Talks with Russia / End of Martial Law?
13:55
NEXTA Live
Рет қаралды 1 МЛН
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 907 М.
React Clean Code: Advanced Examples of SOLID Principles
28:03
Сборник Эксклюзивов 2024 - Уральские Пельмени
1:33:24
Уральские Пельмени
Рет қаралды 1,3 МЛН