Live data from Hacker News

Android KTX: Kotlin Development for Android

android-developers.googleblog.com

31–40 of 75 posts

Re: Android KTX: Kotlin Development for Android

#31

Earlier quoted context omitted.

Same here. On my my most recent project the client requested we use Java, since after they take over they can use devs with Java knowledge.

It will take a week or two to convert experienced Java devs to Kotlin.

Yea I agree. I like Kotlin a lot and found the transfer from Java to Kotlin fairly straightforward.

Just not all clients are open to one more thing for their devs to do/learn. In the specific case for us, the devs were new to Android so they wanted to use a language they were comfortable in.

Re: Android KTX: Kotlin Development for Android

#35

As an alternative to learning Kotlin on Android, you can spend the time learning flutter. Then you get concise code which works on Android and IOS now and on other platforms in the future - including desktops.

I found all the "new" calls rather clunky, does Flutter has something like hyperscript-helpers or JSX?

Re: Android KTX: Kotlin Development for Android

#37

As an alternative to learning Kotlin on Android, you can spend the time learning flutter. Then you get concise code which works on Android and IOS now and on other platforms in the future - including desktops.

And it's made by Google, unsurprinsingly.

A big plus for Kotlin is that being a jetbrains project, it has top of the line intellij tooling support right at release date.

Re: Android KTX: Kotlin Development for Android

#38
post #2

Still working in Java on Android. Have a feeling that I will be left behind soon.

you really wont be, it's like a couple of weeks and you'll be up and running in kotlin.

I don't mind Kotlin, but I don't want to get a big middle finger from Google for choosing to remain with Java for this project I already started in Java.

Re: Android KTX: Kotlin Development for Android

#39

Earlier quoted context omitted.

I don't like this because it forces you to use the tool, and even if you do I've seen so many times when IDE breaks down and won't autocomplete, navigates to compiled binary definition on a same solution project reference, fails to find extension methods so you need to Google which namespace to bring in to get it (which isn't always as simple as class.method search, especially when reading code example snippets), etc…

As someone who had a heavy skepticism of autocomplete from other environments (including Visual Studio, though I admittedly haven't been using that since the VS 2008 era), I have to say I find the autocomplete in Android Studio damn near magical. It is spooky fast and Just Works, in my rather extensive experience with it. Almost all of my experience with it has been in Java, so I'm not sure the same is true in Kotlin…

That's the IntelliJ's magic (android studio is based on it), and that's also why Kotlin is feeling so great compared to other similar language that try to do the same(at least to me); being a jetbrain's made language it has perfect support by their tooling.

Re: Android KTX: Kotlin Development for Android

#40

As an alternative to learning Kotlin on Android, you can spend the time learning flutter. Then you get concise code which works on Android and IOS now and on other platforms in the future - including desktops.

Flutter is definitely on my watchlist but i’m still waiting for them to solve the map and videoplayer issues to bet my future on it.
Post reply on HN