Re:You probably don't need a dependency injection framework
by almostdeadguy on Monday May 26, 2025 @09:00AM
(#44097060)
Calling these "singletons" maybe created confusion here, I'm more talking about singleton in the sense of a value that is created once and shared (i.e. injecting a value as a "Singleton" via something like Guice). I'm not arguing that you need to have values in global scope, I'm arguing that parameterless constructors prevent you from using shared values (actually _unless_ you have singletons in global scope).
[ Parent
| on HN ]
There are no comments on this comment yet.