News for hackers. Stuff that matters.
Re:The Modern Java Platform – 2021 Edition by dmux on Wednesday March 17, 2021 @10:01AM (#26491356)
>Java doesn't even support dependency injection, something that I would consider an absolute minimum for even a small project.

For small projects, DI is easy done by passing things via the constructor. If multiple things need to get wired together, pull that wiring logic out into its own class or method (FooBuilder.buildDefault()). If things start to get tedious, that's a really good time to stop and reflect on the design choices. That stop-and-reflect opportunity if often lost when things can be simply AutoWired together.

There are no comments on this comment yet.