Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

LinkedIn Learning

Kotlin for Android: Best Practices

via LinkedIn Learning

Overview

Discover how to leverage the power of Kotlin when developing Android mobile apps. Learn best practices for working with some of this popular language’s most helpful features.

Kotlin is a popular programming language, and for good reason; it’s pragmatic, fun, and officially supported by Google as an Android development language. In this course, discover how to leverage the power of Kotlin when developing Android mobile apps. Instructor Chiu-Ki Chan shares best practices for working with some of this popular language’s most helpful features. Discover how to dynamically fetch the value of a property with getter, use Kotlin Android extensions, work with scope functions, and format your strings with string templates. Plus, see how to use the Android KTX extensions from Google to make your Android code more readable.

Syllabus

Introduction
  • Kotlin best practices for Android
  • What you should know
1. From Java to Kotlin
  • Kotlin language features
  • EditorConfig
2. Properties and Fields
  • Auto convert and the !! operator
  • On-demand property: Getters
  • Lazy initialization: lazy()
  • Late initialization: lateinit
  • Kotlin Android extensions
3. Conditionals
  • Elvis operator
  • Scope functions: let
  • Scope functions: apply
  • The when expression
  • Sealed classes
4. Readability
  • Data class
  • String templates
  • Functional programming: map, reduce
  • Functional programming: find, filter
  • Functional programming: all, Any
  • Android KTX
Conclusion
  • Next steps

Taught by

Chiu-Ki Chan

Related Courses

Reviews

Start your review of Kotlin for Android: Best Practices

Never Stop Learning!

Get personalized course recommendations, track subjects and courses with reminders, and more.

Sign up for free