3 ms·
I don't see any real justification here for why it was worth the effort to port the code from Kotlin/Java to Scala other than reusing their "well-established sk
by chris_overseas 9y ago
I don't see any real justification here for why it was worth the effort to port the code from Kotlin/Java to Scala other than reusing their "well-established skills with Scala" and "using sbt for our Android app has also allowed us to leverage our unified build system". They're both valid reasons, but they're not so much technical decisions as pragmatic ones for that particular company.
The post states "hopefully I will be able to illustrate how Scala can dramatically improve your experience while developing Android applications". This claim isn't addressed in the post at all however. For example, it states "Scala has a pretty decent concurrency primitive in Future" and explains how to use them, but doesn't say what they offer over and above Java futures or Kotlin coroutines. Most of the post is talking about how they migrated their codebase and any compatibility or technical hurdles that were overcame on the way (e.g. the sbt/Gradle mismatch), not about why Scala was a better choice technically or what benefits it offers over Java or Kotlin. There's no mention either of other practical issues such as the large standard library, method counts, compile times and so on.
The addition of a few strong comparisons would be welcomed. As it stands, the post feels more like "please don't fire me" than "where's my promotion?".
- kornish 9y ago> As it stands, the post feels more like "please don't fire me" than "where's my promotion?". Couldn't help but notice that sentiment in the passive wording of the title: "don't regret moving" is not exactly a ringing, jubilant endorsement.
- Lazare 9y agoI got the same vibe. Sort of a "hey, it actually wasn't that big of a mistake". I didn't get the feeling they'd do it a second time if they had a chance to do it over, knowing that Kotlin was about to get official support. (Or then again, maybe they just really love writing Android code in experimental, unsupported languages! And if so, who am I to judge?)
- gregghz 9y agoWell we also used Swift way before a "stable" release came out. So maybe we're masochists.
- thayne 9y agoI think a more apropriate title would have been "How we migrated our android app from kotlin to scala." There is a little talk about the benefits of using scala instead of kotlin, but that isn't the bulk of the post. I would be interested to see more of a cost-benefit analysis of the decision to migrate to scala, and the outcome.