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
-
rarboot611d@Demolishun Any, really. Ours is dependency_injector, but take any other - injector, di, etc - and you'll see a bunch of idyoms for spring boot expats hooked on decorators
-
Lensflare1619911dSame shit with C#.
Dependency injection doesn’t need libraries. Unless you want to overcomplicate things with ceremonies and boilerplate and add an extra useless dependency to your project. -
rarboot611d@Demolishun DI is a simple concept: implementation comes from an external provider, not the application itself. Everything else is work of the devil. DI is not config files. DI is not arbitrarily scoped implementations (with often a sea of poorly implemented singletons). DI is not adapter hell. DI is not a bunch of decorators.
Related Rants
To all people who thought Python needed a library for dependency injection, fuck you. Idc how much time you invested in your shiny starred GH repo, your overengineered mess is costing both you and my current Jrish team who didn't know better a lot of time with no benefit whatsoever
rant
dependencyinjection
python