stephanenicolas / toothpick

A scope tree based Dependency Injection (DI) library for Java / Kotlin / Android.
Apache License 2.0
1.12k stars 115 forks source link

new article comparing the different DI frameworks #397

Closed markchristopherng closed 4 years ago

markchristopherng commented 4 years ago

I written a new article comparing Koin, Kodein, Dagger and Toothpick in detail plus it includes testing. Let me know what you think?

https://medium.com/@markchristopherng/a-dependency-injection-showdown-213339c76515

afaucogney commented 4 years ago

The article is cool, and give a good overview about way to do DI today in Android. Your article is based on a simple project, and so clearly (and subjectively) KTP is the winner on that field. However, I would also point that when required, you can handle very deep and precise scope management with KTP, and you can get this with just a small piece of work.

Le jeu. 20 févr. 2020 à 02:10, markchristopherng notifications@github.com a écrit :

I written a new article comparing Koin, Kodein, Dagger and Toothpick in detail plus it includes testing. Let me know what you think.

https://medium.com/@markchristopherng/a-dependency-injection-showdown-213339c76515

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/stephanenicolas/toothpick/issues/397?email_source=notifications&email_token=ABSAEWIU4LHMJ7R6IL6DW4LRDXJ6TA5CNFSM4KYE6KK2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IO2ZLQA, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSAEWJ73QENAQAITG3SD2DRDXJ6TANCNFSM4KYE6KKQ .

afaucogney commented 4 years ago

I would like to add some comment :

Then you show some aspect about Ktor compatibility. What is the use case, why this feature make sens, or would be nice for a DI framework ?

Le jeu. 20 févr. 2020 à 11:00, Anthony Faucogney anthony.faucogney@free.fr a écrit :

The article is cool, and give a good overview about way to do DI today in Android. Your article is based on a simple project, and so clearly (and subjectively) KTP is the winner on that field. However, I would also point that when required, you can handle very deep and precise scope management with KTP, and you can get this with just a small piece of work.

Le jeu. 20 févr. 2020 à 02:10, markchristopherng notifications@github.com a écrit :

I written a new article comparing Koin, Kodein, Dagger and Toothpick in detail plus it includes testing. Let me know what you think.

https://medium.com/@markchristopherng/a-dependency-injection-showdown-213339c76515

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/stephanenicolas/toothpick/issues/397?email_source=notifications&email_token=ABSAEWIU4LHMJ7R6IL6DW4LRDXJ6TA5CNFSM4KYE6KK2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IO2ZLQA, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSAEWJ73QENAQAITG3SD2DRDXJ6TANCNFSM4KYE6KKQ .

stephanenicolas commented 4 years ago

Thank you for this article. Of course as a toothpick co-author, I am glad you liked it and that it did well in comparison of other frameworks.

I was really impressed that you spent the time to try them all and give each DI lib a honest chance to shine.

On Wed., Feb. 19, 2020, 17:10 markchristopherng, notifications@github.com wrote:

I written a new article comparing Koin, Kodein, Dagger and Toothpick in detail plus it includes testing. Let me know what you think.

https://medium.com/@markchristopherng/a-dependency-injection-showdown-213339c76515

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/stephanenicolas/toothpick/issues/397?email_source=notifications&email_token=AAN7PXKHQXRZ2OGTWJXKEP3RDXJ6RA5CNFSM4KYE6KK2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IO2ZLQA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN7PXNIK5HEKFW6M6AK6B3RDXJ6RANCNFSM4KYE6KKQ .

markchristopherng commented 4 years ago

Glad you liked the article. It just got published to https://proandroiddev.com/

I think having a simple example and working code is valuable to get people up and running quickly. I also wanted to back up what I had said in my previous article with some hard evidence.

I got some feedback about the Dagger example that it wasn't using some of the new annotations. Just dong this simple example on Dagger reminded me how complicated it is.

markchristopherng commented 4 years ago

Hi @stephanenicolas @dlemures are you able to add this article as link on your README.md I think it could be very helpful to new starters.

Also the article got published in AndroidWeekly.net this week (so far 7.7 K views) so its good publicity for Toothpick. Its a really great library I hope more people use it in the future.

dlemures commented 4 years ago

Thx so much for the article @markchristopherng and congrats for getting it on AndroidWeekly!

Just added it to the README

markchristopherng commented 4 years ago

@dlemures The article is a small thing compared to your hard work in creating and maintaining Toothpick. Its been a very popular article with 10K views. I also got lots of feedback from angry Dagger uses.

Maybe you can respond to this person https://medium.com/@pahakorolev/you-wrote-abouttoothpick-5fd9257302f2