New Kotlin Style Guides Unveiled
New Kotlin Style Guides Unveiled
Written by Mike James   
Friday, 03 November 2017

The Android team has produced two new style guides for using Kotlin on Android and provided some updates on how Kotlin uptake is going. 

kotlinAndroid

On the first day of the sell out KotlinConf in San Francisco, the Android team provided some updates. The important piece of information is that 17% of projects in Android Studio 3 are using Kotlin. It isn't clear how many of these are 100% Kotlin. 

To encourage you to try the language, they have even made a video about how using Kotlin increases developer happiness, and we all know how important that is don't we... Oh yes it also helps with productivity too: 

 

The thing is that once you have tried Kotlin for a few hours you really don't need a video to convince you that it is a better way.

Just try it.

After you have tried it there will be some untidy questions to sort out. For example, you may know what is good style in Java, but what about Kotlin? To bridge that gap, the Android team has put together a style guide and a Java interop guide 

https://android.github.io/kotlin-guides/

Both are worth a look, although I don't like the use of "WRONG" in the style guide. For me style is a matter of taste, always, and while it might not be good, "WRONG" is too strong at term. 

Even though Kotlin is supported in a stable IDE, i.e. Android Studio 3, there is still a way to got. Some of the Android samples are being converted to Kotlin, but the IDE could still do with improvements to support the language - code completion and refactorings. It is also still a slight problem that the libraries are all in Java - you can't rid yourself of the language completely. It will take time to add Kotlin support to all that code. Currently nullability annotations are being added to Support Library 27 so that Kotlins null-safety can be extended to platform types. 

It is nice to see Android Studio, the compilers and tools all back on track after the fairly large detour caused by the Jack and Jill project. 

androiddev

 

More Information

https://www.kotlinconf.com/

Related Articles

Android Studio 3.0 Released

Kotlin Begins Its Takeover Of Android

Kotlin - New Language For Android

Android Studio Moves Toward Java 8

Android 8.1 Introduces Neural Networks API

Google's Jack & Jill Android Java Compiler Project Is Dead

The New Android Compilers - Meet Jack And Jill 

Android Studio 2.3 - In Need Of Direction

Android Studio 2.2 Preview Big Changes! 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on, Twitter, FacebookGoogle+ or Linkedin.

 

Banner


Walk A Thousand VR Miles And Never Leave The Room
30/05/2018

In sci fi virtual reality is much realer than it is in reality, if you see what I mean. For one thing users can always walk around as if there were infinite space, but in reality they are confined in  [ ... ]



Udacity Launches Data Scientist Nanodegree
24/05/2018

Udacity has launched a new Data Scientist Nanodegree program. At an advanced level it has projects designed by Bertelsmann, Figure Eight, IBM Watson, Insight, Kaggle and Starbucks which map to the ski [ ... ]


More News

justjsquare

 



 

Comments




or email your comment to: comments@i-programmer.info

<ASIN:1871962536>

 

Last Updated ( Friday, 15 June 2018 )
 
 

   
Banner
RSS feed of news items only
I Programmer News
Copyright © 2018 i-programmer.info. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.