Book Image

Kotlin - Tips, Tricks, and Techniques [Video]

By : Nigel Henshaw
Book Image

Kotlin - Tips, Tricks, and Techniques [Video]

By: Nigel Henshaw

Overview of this book

<p>Do you want to see an increase in your productivity as an Android developer? With this course, you will discover new possibilities with Kotlin and improve your app development process.</p> <p>In this course, you will work with interesting tools and techniques on examples which you can adopt straightaway. You will speed up your development with less coding and get faster results. By the end of this course, you will be able to write faster, cleaner code and make your life easy as a Kotlin developer.</p> <p>The code bundle for this video course is available at -&nbsp;<a href="https://github.com/PacktPublishing/Kotlin-Tips-Tricks-and-Techniques" target="_blank">https://github.com/PacktPublishing/Kotlin-Tips-Tricks-and-Techniques</a></p> <h2>Style and Approach</h2> <p>A comprehensive course packed with step-by-step instructions, working examples, and helpful tips and techniques on working with Kotlin. This course is divided into clear chunks so you can learn at your own pace and focus on your own area of interest.</p>
Table of Contents (6 chapters)
Chapter 1
Techniques to Reduce Development Time and Code
Content Locked
Section 6
Multiple Method Calls on an Object for Easier Readability
It is common that, after creating a class instance, a number of methods of the object will need to be called. That means the object named will be called a number of times. By using a number of scoping methods, the references to object names can be removed. - Add a with function to remove object names - Use the apply extension for method initialization - Successful calls of with and apply functions, with the expected result