you are viewing a single comment's thread
view the rest of the comments
[–] 11 points 1 year ago* (4 children)

I write my code for future maintainers. I optimize for clarity, testability, and readability.

I've become a huge fan of dependency injection. That does not mean I like DI frameworks (Guice). I tend to do it manually with regular code.

When I maintain code and I sit there wondering what it actually does, I write a unit test for it right then and there

And so on

  • source
  • hideshow 4 child comments
  • [–] 3 points 1 year ago* (2 children)

    DI without a tool/injector is just composition. just saying

  • source
  • parent
  • hideshow 2 child comments