It was time for the second article (but it melancholy sounded 🙂 ) in the previous article, we refactored the code of the web game prototype, and so on there you can still improve a lot, using mainly dependency injection what exactly in this article we will do, go 🙂 …
We are continuing the dependency injection section, in this article we will refactorize the code from the previous entry and, as we remember, that code was not very friendly to read, test and expand. Today we will try to change it 🙂
I promised that in the next article we will already inject dependencies, however, I decided to do everything in turn, present the code on which we will work 🙂
Today’s post will be more written, no code will be because today I will only explain what is dependency injection, why it is, what it is for, etc. in the next post will be the code.