News for hackers. Stuff that matters.
Re:Best Practices for Testing in Java (2019) by sk5t on Wednesday September 02, 2020 @12:06AM (#24349884)
It's much more ergonomic, flexible, testable, and configurable to inject that connection pool thing instead of bodging it together in the static initializer. Classes shouldn't be managing resources of which they are properly only consumer...

There are no comments on this comment yet.