News for hackers. Stuff that matters.
Re:CUPID – the back story by mrloba on Sunday March 21, 2021 @12:53PM (#26531800)
Move your logic to pure functions. Use classes for plumbing. Now you can unit test the logic, and integration test the plumbing. You can easily test with a real database using docker for example. Note that you'll still use DI in this case, but you'll have far fewer classes and therefore fewer dependencies as well.

There are no comments on this comment yet.