4 ms·
I mean, gradle vs cocoapods... I gotta go with gradle. Yes, it's a new configuratio language to learn, and yes, that is an odious chore, but honestly, if I'm l
by warcher 10y ago
I mean, gradle vs cocoapods... I gotta go with gradle. Yes, it's a new configuratio language to learn, and yes, that is an odious chore, but honestly, if I'm leveraging ecosystem library projects, I don't think I've seen a better compiled alternative (excepting the super mature web ecosystems, of course).
- Groxx 10y agoSure, it's better than nothing. And it does function, and it has (vastly) simplified adding third-party libraries. And there are much worse alternatives. But it's not debuggable. It's not introspectable. When things go wrong, you're left hoping Stack Overflow has a magic piece of copypasta to save you from days of guessing. To integrate with it you practically need to do what Android Studio has - work directly with the Gradle team to expose enough information to custom-build an IDE that can make use of it. It feels like it could've been achieved more simply by other means. Instead we have a truly massive, very slow build system that few understand, and for a long time (including after Android Studio's adoption) didn't support basic, long-standing features of the Java build environment (like "provided"-scope code (common in many languages! arguably universal!) and annotation processors).
- yincrash 10y agoEspecially compared to the Ant/Maven build system that pre-dated it, gradle feels great and is so much easier to do complicated stuff like different build configurations, etc. I shudder just thinking about Ant.
- vorg 10y ago> gradle. Yes, it's a new configuratio language to learn Don't forget Gradle has the choice of 2 languages to use for configuration -- Kotlin and Apache Groovy. If you use Kotlin you get: * full Android Studio support for auto-complete hints because Kotlin is statically typed, and Kotlin and Android Studio are both created by the same company, i.e. Jetbrains. (Groovy is dynamically typed and auto-complete only works 80% of the time.) * Kotlin can also be used to build actual Android apps instead of Java, so you can use the same language for building the app and writing the scripts for builds, tests, etc. (Groovy had Android support added, but 2 yrs ago the programmer who do it was retrenched from VMware and no other business wanted to hire him to continue the work, so it's a bit dated.)
- warcher 10y agoKotlin has been on my list of new languages to investigate for a minute, just haven't really found a use case for another JVM language that isn't really pushing the envelope. (That's not a dig, it seems like a nicer iteration of java all around, I just don't have many major grievances with java for doing java-y things.)