Kotlin – Tips, Tricks, and Techniques

Video Description

Build powerful and efficient Android apps with proven techniques and tricks to increase productivity

About This Video

  • Take your programming skills to the next level and harness the power of Kotlin's rich features by writing cleaner, faster code.
  • Go from Kotlin user to Kotlin expert by learning many exciting tips, best practices, and techniques for your Kotlin app development to make the code more robust and error-free.
  • Work with expert tools and tips to improve application performance with Kotlin and save time and effort.

In Detail

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.

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.

The code bundle for this video course is available at - https://github.com/PacktPublishing/Kotlin-Tips-Tricks-and-Techniques

Table of Contents

  1. Chapter 1 : Techniques to Reduce Development Time and Code
    1. The Course Overview 00:03:42
    2. Using an Expression Body to Reduce a Function to a Single Line 00:05:03
    3. Making Code More Readable with when Blocks 00:06:12
    4. Simplifying Functions with Named Arguments and Default Parameters 00:04:31
    5. Using Extension Functions and Properties to Add More Features 00:05:41
    6. Multiple Method Calls on an Object for Easier Readability 00:03:45
  2. Chapter 2 : Tips to Make Code More Robust and Error-Free
    1. Recommended Methods to Avoid NullPointerExceptions 00:04:08
    2. Using let for Handling Null Expressions 00:04:37
    3. Kotlin Methods for Eliminating Nulls from a Collection 00:03:44
    4. Recommended Methods for Thread Safe Calls 00:04:15
    5. Using Singletons for Thread Safe Code 00:03:21
  3. Chapter 3 : Tips to Create and Use Classes Easier and Faster
    1. Simplifying Class Properties with Constructor Parameters 00:05:06
    2. Using Secondary Constructors for Additional Flexibility 00:03:53
    3. Implementing Custom Behavior for Fields for Adding Functionality 00:04:39
    4. Using Object Expressions for Thread Safe Calls 00:03:34
    5. Using Companion Objects to Replace Java Static Fields 00:04:14
  4. Chapter 4 : Features to Use to Support Functional Programming
    1. Using Lambdas to Simplify Defining Functions 00:05:22
    2. Using Higher Order Functions for Clean Code Abstraction 00:04:41
    3. Using Immutable Collections to Support Safe Multithreading 00:05:00
    4. Using Filter and Map to Quickly Manipulate Collections 00:04:37
    5. Using Data Classes to Conveniently Package and Protect Data 00:04:55
  5. Chapter 5 : Optimizations to Improve App Startup and Performance
    1. Using the Kotlin Bytecode Tool to Observe Additional Overhead 00:06:04
    2. Using Late and Lazy Properties to Delay Initialization 00:04:58
    3. Inlining Higher Order Functions to Avoid Additional Java Calls 00:05:09
    4. Applying const to Companion Object Properties to Avoid Generating Extra Methods 00:04:52
    5. Using Sequences to Avoid Creating Temporary Lists 00:05:07
  6. Chapter 6 : KTX Extensions for Easier Access to Android APIs
    1. Using Core KTX Module for Easier Use of Android APIs 00:04:49
    2. Using SQLite KTX Module to Simplify Database Transactions 00:03:58
    3. Using Fragment KTX Module to Simplify Fragment Transactions 00:03:29
    4. Using Collection KTX Module for Extensive Collection Support 00:03:44
    5. Using Work KTX Module for Simplifying Asynchronous Requests 00:05:02

Product Information

  • Title: Kotlin – Tips, Tricks, and Techniques
  • Author(s): Nigel Henshaw
  • Release date: September 2018
  • Publisher(s): Packt Publishing
  • ISBN: 9781789349641