About the course
Add Dagger 2 to your Android development toolkit and implement clean dependency injection in Android apps.
What Will I Learn?
Learn to use Dagger 2
Quickly integrate Dagger 2 into Android applications
Discover the relationship between dependency injection and clean code
Implement "Pure Dependency Injection" in Android applications without third-party frameworks
Structure dependency injection in Android applications for best long-term maintainability
Understand the benefits of dependency injection frameworks
- Experience with Android (preferably 6 months or more)
- Knowledge of Java
- A desire to write clean and maintainable code
In this course you'll learn what dependency injection is and how to use Dagger 2 dependency injection framework to develop maintainable Android apps.
I'll show you that dependency injection architectural pattern is a natural outcome of a clean and decoupled design.
You'll see that dependency injection is not about frameworks, annotations, reflection or code generation, but about the architecture of your Android projects.
During this course I'll show you several approaches to dependency injection in Android, including so-called Pure Dependency Injection which doesn't require any third-party frameworks at all.
The structure of Dagger 2 code for Android apps demonstrated in this course is professional grade, production ready setup, optimized for long-term maintainability.
- Professional grade
- Optimized for experienced developers
- Non-trivial examples
- Source code on GitHub with step-by-step commits history for easier review
My own journey to dependency injection in Android started about three years ago. Back then I thought that if I just learn Dagger 2 it will cover all I need to know about dependency injection.
This naïve idea couldn’t be farther from the truth.
Eventually I did learn Dagger 2 and started using it in my Android apps. However, instead of feeling more productive, I felt that it wastes my time and makes the design more complex.
My initial bad experience with dependency injection framework in Android led me to question the entire concept of dependency injection. I thought to myself: maybe it is overrated, or only suitable for very big projects?
Luckily, I didn’t give up immediately. Instead, I decided to research this topic and understand why my experience with dependency injection is so much different from what I read in books.
This research changed my view of software design and architecture. Suffice is to say that today I use dependency injection in absolutely all my projects.
Just like any other tool, dependency injection frameworks can be very helpful, or be misused.
I personally misused Dagger 2 for quite a long time in my Android applications. It's only after I understood the fundamentals of dependency injection that I was able to use it efficiently to write clean and maintainable code.
I’m going to spare you all this trouble and time by starting this course with explanation of the theory of dependency injection. Then, I'll show you how it applies in context of Android apps. Once you see the big picture of dependency injection in Android, I'll explain you how Dagger 2 fits into this picture and what benefits it provides.
You’re about to join a journey from theory to practice and discover dependency injection in Android for yourself in its full glory and power.
I can’t wait to see you inside.
Who is the target audience?
- Professional Android developers
Project Management Skills for Non-Project Managers