A very nice and simple explanation..please go through it!! 🙂


Heya people.!

In my last post I discussed about Singletons, its advantages and disadvantages, why it is considered an anti-pattern and stated DI as a better option.In this blog, I will be proving my statement along with going through DI basics and its key benefits.

But, to start with our discussion, we first need to understand the importance of DI.

For example, if we want to make tea for our guests. We will need to collect all the ingredients such as tea leaves, water, kettle , sugar and milk all by ourselves and then put the kettle on the gas to boil water, add tea leaves, milk and sugar and let the mixture boil before we serve it. For all this time, our guests will be waiting for us to get free and meet them. Will it then not be better to have a helping hand who knows better…

View original post 1,224 more words


Hello world!

This is your very first post. Click the Edit link to modify or delete it, or start a new post. If you like, use this post to tell readers why you started this blog and what you plan to do with it.

Happy blogging!