Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Froot75547yWhy is it bad? It has its place. Like when you write a callback that can be provided a bazillion properties and dependency injection lets you choose only the ones you need
-
@Froot I agree with you. It was more of a joke. Seems like these days I see it implemented everywhere for everything and just makes the code more complex and less readable for zero benefit. It has its place for sure, but recommending that someone use it without a defined purpose and goal is a waste. The recommendation I hear is "you should use DI because loose coupling is totes amazeballs" but no actual proof behind the statement and only contrived examples of where someone would swap out a database and suddenly everything is better because DI was there to save the day. No. I have never seen it used properly for that purpose and neither has it helped make that "easier refactoring" a reality.
-
Froot75547y@molynerd It seems that the whole tech scene is just a game of who can shout louder so I kind of agree with you there
Related Rants
Dependency Injection
undefined
wk66