5 ms·
Has the Android world moved to Kotlin then?
by MattGaiser 6y ago
Has the Android world moved to Kotlin then?
- voz_ 6y agoAnecdotal, but it seems to be on par with iOS Objc->Swift. New stuff is Kotlin, but unless you have a strong reason to rewrite, it stays ObjC.
- complexworld 6y agoA major difference is that there is a tool for automatically converting from Java to Kotlin. I don't think that exists for Objc to Swift.
- krrrh 6y agoThere is this, which can help get started. http://swiftify.com/ http://swiftify.com/
- V-2 6y agoThe code it generates leaves a lot to be desired. It's highly non-idiomatic, and has the marks of a computer-generated structure all over it. This being said, it certainly facilitates the transition from Java to Kotlin as it makes for a convenient learning tool (used on small portions of code).
- melling 6y agoThe transition to Swift has accelerated in the past year. Might be because of SwiftUI or because it’s now mature. https://www.tiobe.com/tiobe-index/ https://www.tiobe.com/tiobe-index/
- dep_b 6y agoABI stability. You don't need to ship the whole runtime with it anymore. Though if you want a framework that works nice with both languages and older versions Objective-C is still better.
- vbezhenar 6y agoYes, Kotlin is preferred language now. Some new Google libraries are targeting Kotlin first. You should not use Java for new projects.
- javajosh 6y agoKotlin is great, but if you're looking for max maintainability in the next ~10 years Java is better. It's just so much easier to hire for Java!
- rubber_duck 6y agoKotlin is Java++, you can easily hire Java developers and have them working on the code base within days.
- scns 6y agoI would say Kotlin is Java+ and Scala is Java++
- rubber_duck 6y agoI'm not a 100% sure since I only did basic Scala intro, but it seems like it has a non-trivial learning curve coming from Java - for ex. I was a C# dev with FP experience and it stil took me a while to figure out the basics in Scala. With Kotlin, I barely knew Java and I just used autoconvert and google to simplify my Java code when I was writing some android native stuff.
- Larrikin 6y agoAs an Android dev, I disregarded any company hiring that was not transitioning to Kotlin. It was a major red flag if the project was relatively new. My personal project on spring boot is completely powered by Kotlin and I fully expect KotlinJS to be ready for production in a year or so for full stack development. Writing in Kotlin really is a nicer experience and with near full access to all the legacy java libraries I would never want to switch back even with the small improvements java has made to be more like Kotlin. I highly suspect as the number of java devs that are exposed to Kotlin increases the number of devs happy to write in Java over Kotlin (or Scala) will decrease. Android going Kotlin first was in part justified by giving the decision makers a short period of a week or two to get adjusted away from java and see how they felt about the language in comparison
- suyash 6y agoProbably only about 20-25%, I still use and Prefer Java
- PunksATawnyFill 6y agoI wish Google would stop farting out new languages every few months and focus on Kotlin. If they don't want to commit to any of them, they should throw in the towel, adopt Swift, and be done with it. The continual flailing is goddamned annoying.
- Larrikin 6y agoOn android there is absolutely no sign that there is anything besides a full commitment to Kotlin. There are no new docs put out without Kotlin code and all the major libraries have ktx variants that allow for better idiomatic Kotlin code. In the community one of the easiest ways to spot if an example is old and probably out dated is if the author wrote it in Java. New things people aren't even bother keeping up the guise that Java is relevant to new things. Also Kotlin isn't created by Google and I personally would rather see Kotlin come out on top if we are directly comparing it to Swift.
- PunksATawnyFill 6y agoThey seem similar from the very, very small amount of Kotlin I’ve seen. Why do you prefer it over Swift? Also I wasn’t referring specifically to Android, where I realize Kotlin is now dominant.
- kllrnohj 6y ago> Also I wasn’t referring specifically to Android Then what are you referring to? The only languages Google has released are Dart & Go, which are 8 & 10 years old respectively. That doesn't remotely qualify as "farting out new languages every few months"