r/androiddev • • Sep 16 '18

Why does Android development feel like hell?

[deleted] — view deleted post

207 Upvotes

174 comments sorted by

View all comments

Show parent comment

10

u/Arkanta Sep 16 '18

At least iOS doesn't require you to add contexts everywhere. They're like a disease spreading all over your codebase. DI may help but I can't use it, as I mainly work on a library

How is the toolchain abominable? You can at least link to native stuff without wanting to kill yourself over the atrocity of JNI and the NDK. Legitimately asking, since I think iOS has some annoyances (making libraries sucks) but I don't hate it as much as gradle.

10

u/pents900 Sep 16 '18

Yeah, I'm thinking of Xcode being way worse than IDEA/Android Studio, the difficulty working with and building libraries, and also just how opaque and obtuse the whole system is with architectures, OS versions, etc.

1

u/Arkanta Sep 16 '18

I really wouldn't call architectures and OS versions opaque, but that may just be my experience

8

u/Zhuinden Sep 16 '18

DI may help but I can't use it, as I mainly work on a library

DI is a pattern, Dagger is a tool to help achieve that pattern.

You can apply your own DI.

4

u/Foxtrot56 Sep 16 '18

Inversion of Control is the pattern, DI is an implementation of that pattern

2

u/Arkanta Sep 16 '18

Right.

I meant can't use a library. I do my own DI (when possible, fuck contexts)