WHAT IS DEPENDENCY INJECTION? DO YOU USE ANY DI LIBRARY IN
YOUR PROJECT? CAN YOU NAME A FEW OF THEM, AND WHY ONE IS BETTER THAN
OTHERS?

Subject Android
Institute Ahsanullah Institute of Information and Communication Technology 2012

Dependency Injection is a design pattern to implement inversion of control, and to resolve dependencies. Dependency Injection (DI) eliminates boilerplate code (for example, by removing listener) and provides a much cleaner and effective code. There are a few DI libraries used in Android development:
-Dagger[5]
-ButterKnife[6]
-RoboGuice[7]

ButterKnife and Dagger do not use reflection, but rather compile time annotations. They are therefore faster to develop with.

Login to post your comment.