this post was submitted on 02 May 2024
401 points (92.8% liked)

Programmer Humor

19480 readers
615 users here now

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.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 16 points 6 months ago* (last edited 6 months ago) (1 children)

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

[–] [email protected] 7 points 6 months ago (1 children)

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.

[–] [email protected] 1 points 6 months ago

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.