News for hackers. Stuff that matters.
Re:Java 21 makes me like Java again by riku_iki on Saturday September 16, 2023 @07:30PM (#37539897)
the problem is that those DI frameworks are all adding substantial amount of complexity and brain load.

I started using just static factories in my code, and abandoned all those DI and it works well enough.

Re:Java 21 makes me like Java again by andrekandre on Sunday September 17, 2023 @10:04AM (#37545197)

  > I started using just static factories in my code, and abandoned all those DI and it works well enough.
i have done this as well (though not in java), it makes knowing what gets initialized how and where much easier and faster to debug