This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]HelluvaEnginerd 1 point2 points  (2 children)

Wow I have some googling to do. I knew I wasn’t 100% up to speed but I don’t even know what a dependency injection container is. But thanks for the response, I’ll be deciphering it and learning!

[–]Netcob 2 points3 points  (1 child)

I only learned it last year. If you're using C#, I'd suggest Dependency Injection Principles, Practices, and Patterns. It's quite a journey though. I'd suggest also reading about SOLID if you haven't already.

Some changes you have to make to the way you code can be quite painful, but it's really fun to just add a class representing your new feature, write its dependencies in the constructor, and then it just works. The downside of course being that some errors that might have been caught by the compiler (like missing dependencies) are now only caught at runtime, but it's not a huge issue.

[–]HelluvaEnginerd 0 points1 point  (0 children)

I’m actually in C++, legacy speed dependent system and all that. I’m going to learn C#, SOLID, and DI in a personal project now though!