this post was submitted on 06 Aug 2023
8 points (100.0% liked)

Programming

3 readers
1 users here now

This magazine is dedicated to discussions on programming languages, software development, and coding. Whether you are a beginner programmer or an experienced developer, this is the place for you. Here you can share your knowledge, ask questions, and engage in discussions on topics such as coding languages, software engineering, web development, and more. From the latest trends and frameworks to tips and tricks for debugging, this category covers a wide range of topics related to programming.

founded 2 years ago
 

Video that explains dependency injection in a visual and easy-to-understand manner

you are viewing a single comment's thread
view the rest of the comments
[–] magic_lobster_party@kbin.social 3 points 1 year ago (1 children)

I like that the video shows the non-framework way of doing it. Removes a lot of the mystery behind it.

[–] bradboimler@kbin.social 3 points 1 year ago (1 children)

I learned dependency injection as I went along in my engineering career and I've become a huge fan of it. And yeah, I strongly prefer to do it "manually" without relying on a framework.

I push hard for it in code reviews

I became a fan of it at my last job. Now I’m trying to push it at in my new workplace with mixed results. We’re having so many problems right now because we haven’t used dependency injection. Everything is so tightly coupled and impossible to test. Same boilerplate code everywhere because we’re constructing the same thing the same way over and over again.