Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Kotlin for Android App Development: app types and Kotlin

 
author
Posts: 51
Android Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I know almost nothing about Kotlin, but have made many Android apps in Java for a long time. Are there aspects of Kotlin that are very different from Java for Android? Are there any types of Android apps (other than games) that should not be attempted in Kotlin? Thank you.
 
Author
Posts: 28
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Dave,

Kotlin is heavily inspired by Java but it has several powerful language features that don't exist in Java, such as:
  • Data classes & sealed classes
  • Null safety(!) -- this is an extremely interesting aspect of Kotlin's type system, I recommend to take a look at it to see why NullPointerExceptions don't have to occur so often
  • Coroutines(!) -- these are very interesting for Android dev as well, no need for AsyncTask or the like
  • More convenient syntax for functional programming
  • Even more convenient Collections API
  • Infix functions & shorthand function notation
  • ...and many more


  • This doesn't even scratch the surface yet but if you want, check out the official Kotlin docs (they're really well written!) or download the two sample chapters from my book from the companion website.

    Also, let me know if you want to know about any feature in particular. Thanks!

    - Peter
     
    Oh. Hi guys! Look at this tiny ad:
    free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
    https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
    reply
      Bookmark Topic Watch Topic
    • New Topic