News for hackers. Stuff that matters.
Re:Why I Don’t Regret Moving Our Android App to Scala by dkarl on Wednesday July 12, 2017 @07:40PM (#14757613)
My experience with Scala on Android was similar. As a language, it's very pleasant and powerful and would be ideal for Android programming if only you weren't constantly fighting against the fact that Android's tooling and technology were built around Java. It's a time suck. React Native is vastly easier, even though it means using Javascript.
Re:Why I Don’t Regret Moving Our Android App to Scala by gregghz on Wednesday July 12, 2017 @09:29PM (#14758132)
FWIW, google adopting a second JVM languages means that Android tools will trend toward operating on bytecode and not source where applicable. They released some annotation processors for Room and their lifecycle stuff that operate entirely on bytecode so work well enough with Scala.
Re:Why I Don’t Regret Moving Our Android App to Scala by dkarl on Thursday July 13, 2017 @01:27AM (#14758933)
That aspect was already true when I was using Scala. Scala code compiles into .class files, and the Android toolchain takes over from there. Theoretically, no issue at all.
Re:Why I Don’t Regret Moving Our Android App to Scala by eropple on Wednesday July 12, 2017 @08:02PM (#14757723)
To be honest, I was all-in on "screw JavaScript" until ES6 came around and Babel became stump-dumb-easy to deal with. I've found that just getting things done has gotten a lot easier in modern JS and TypeScript is a powerful tool (though working with React/Redux directly with it is kind of a pain in the ass; I tend to write React components in ES6 just so I don't have to what-the-hell-am-I-doing-with-my-life my way through react-redux).