The usage of the singleton pattern is very often considered as a bad practice.
In this article I’ll try to convince you that is not.
There are two main arguments against this pattern, let’s discuss them one by one.
In the previous post I’ve introduced the very basics of Dagger framework. Now, I’d like to introduce two important concepts: field injection and modules.
This article is a very gentle introduction to Dagger2 framework. It is aimed for the beginners and it is exactly the text I wish I had read when I was starting with Dagger one year ago.