401
STOP DOING DEPENDENCY INJECTION
(sopuli.xyz)
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Is this even a joke? In Spring DI beans are nothing but glorified over complicated global variables.
Also this fits in here perfectly https://m.youtube.com/watch?v=k0qmkQGqpM8
Spring singleton beans are supposed to be stateless though, so they can't be called variables. Maybe the DI aspect of Spring is less relevant today in the micro service era, but in the day Spring helped make layered monolith apps much cleaner.
Really? From my experience the opposite is the case. I work on a smallish team with 3 other developers and we also have a few spring services with < 100 classes and we constantly run into issues where making changes to a bean causes issues in another unrelated part of the codebase. I can't imagine what a nightmare it would be with a larger codebase and more devs working on it.