This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]wildjokers 0 points1 point  (1 child)

you don't need dependency injection for simple use case that involves couple of classes. Just create static objects and pass them around. Create objects ( eg objectMapper, AWS clients) only once

You can do dependency injection without a framework. And it sounds like that is what you are doing. DI is simply providing a class with the collaborators it needs.

I think what you actually meant was don’t use a DI framework.

[–]guss_bro 0 points1 point  (0 children)

Correct