codepath / android_guides

Extensive Open-Source Guides for Android Developers
guides.codepath.com
MIT License
28.31k stars 6.35k forks source link

Suggestion - Dagger and Dependency Injection #31

Closed polok closed 9 years ago

polok commented 10 years ago

Dependency injection support which is offered by Dagger tool can make our lives more pleasant. Moreover, writing tests is more easier.

I would enjoy contributing to a guide about this. Let me know if you have an interest.

nesquena commented 10 years ago

I also like butterknife as well. Definitely agree a guide on these tools would be awesome I use one of these in every project. I added it to the master list of topics. Would love a guide on these.

polok commented 10 years ago

Yea, ButterKnife is cool for injecting views in general. Together with Dagger - awesome ;)

mitchross commented 10 years ago

I have experience with Dagger / Roboguice and I highly recommend it!

IgorGanapolsky commented 9 years ago

I think Dagger2 is the way to go now. It is vastly simpler than Dagger1.

LLin233 commented 9 years ago

agree. ButterKnife makes view creating much easier

nesquena commented 9 years ago

@vinc3m1 sample project: https://github.com/vinc3m1/nowdothis on dagger 2.

nesquena commented 9 years ago

Here's a slide deck to link in the guide: https://docs.google.com/presentation/d/1bkctcKjbLlpiI0Nj9v0QpCcNIiZBhVsJsJp1dgU5n98/edit#slide=id.p

nesquena commented 9 years ago

Here's the article stub: https://github.com/codepath/android_guides/wiki/Dependency-Injection-with-Dagger-2

nesquena commented 9 years ago

https://github.com/codepath/android_guides/wiki/Reducing-View-Boilerplate-with-Butterknife