Kotlin for Android & Java Developers: Clean Code on Android
Video description
Become a professional Kotlin developer and write cleaner code in your Android apps than in Java, avoid boilerplate code
About This Video
This course will focus on producing clean code which teaches you to make use of Kotlin's amazing features to actually write better code than in Java.
Get a huge benefit using Kotlin instead of Java, e.g. by avoiding boilerplate code around many Android APIs.
In Detail
Kotlin is a …
Kotlin for Android & Java Developers: Clean Code on Android
Video description
Become a professional Kotlin developer and write cleaner code in your Android apps than in Java, avoid boilerplate code
About This Video
This course will focus on producing clean code which teaches you to make use of Kotlin's amazing features to actually write better code than in Java.
Get a huge benefit using Kotlin instead of Java, e.g. by avoiding boilerplate code around many Android APIs.
In Detail
Kotlin is a modern language for the JVM, and the only officially supported language on Android besides Java. It's developed by JetBrains, the makers of IntelliJ on which Android Studio is based. Since Google's announcement to officially support Kotlin in 2017, interest in the language has radically increased -- and with it the number of tutorials, courses, books, and also job offers for Kotlin. It's a great time to dive into this modern language and get ahead of other Android developers! With its modern language design that incorporates industry best practices, Kotlin allows you to write highly expressive, understandable and safe code -- while being 100% interoperable with Java. You can use any Java classes and methods from Kotlin and the other way around. This course shows you what language features I mean, and how you can apply them in order to write world-class code. Learn to use Kotlin the right way to actually improve your Android app code write null-safe, concise, and readable code in Kotlin using functional and object-oriented concepts workaround unnecessary boilerplate code when using Android APIs (e.g. SQLite) using higher-order extension functions, use Android Studio effectively to speed up your development workflow, get your questions answered along the way should you ever get stuck.
Get Ready for Serious Kotlin Coding (Set up IntelliJ IDEA)
00:04:59
Create a main() Function
00:02:33
Named Arguments & Default Parameter Values
00:05:44
Exceptions
00:06:13
Why No Checked Exceptions?
00:05:31
Recap
00:01:53
Chapter 4 : Functional Programming
Introduction
00:01:23
What is Functional Programming?
00:03:11
Functional Programming II
00:04:15
Lambdas & Higher-Order Functions
00:10:06
Use map() and flatMap()
00:07:47
Use take () and drop()
00:06:28
Use zip ()
00:04:45
Chain Functions Together
00:06:19
Lazy Sequences
00:08:17
Case Study: Performance of Lazy Sequences
00:08:10
Code Along: Infinite Lazy Sequence of All Prime Numbers
00:12:28
Use “let” Operator for Scoping and Nullables
00:06:26
Use “with” for Many Calls on the Same Object
00:03:55
Use “use” for Closeable (like try-with-resources)
00:04:30
Inline Functions
00:06:59
Recap
00:02:23
Chapter 5 : Object-Orientation in Kotlin
Introduction
00:01:59
Classes
00:02:26
Properties with Getters & Setters
00:06:01
Primary and Secondary Constructors
00:08:26
Methods
00:03:47
Extension Functions
00:06:23
Data Classes
00:09:51
Enums
00:06:12
Inheritance
00:05:21
Code Along: Inheritance Example
00:05:57
Abstract Classes
00:05:47
Interfaces
00:07:18
Overriding Rules
00:08:52
Smart Casts
00:07:56
Visibilities
00:08:48
Companion Objects for “Static” Members
00:06:31
Object Declarations as Singletons
00:05:09
Packages and Imports
00:04:15
Generic Classes
00:07:53
Generic Functions
00:04:59
Covariance
00:07:07
Covariance: Java vs Kotlin
00:10:35
Covariance vs. Contra variance: “out” and “in”
00:09:44
Recap
00:01:47
Chapter 6 : Kotlin for Android – Fundamentals
Introduction
00:02:50
Create the App Project
00:04:52
Understand the Android Versions
00:03:08
Create a CardView Layout and Add UI Elements
00:09:44
Use the “Kotlin Android Extensions”
00:08:55
Challenge Solution
00:03:31
Chapter 7 : Kotlin for Android – Implement a RecyclerView
Introduction
00:01:01
What is a RecyclerView?
00:05:17
Create the Data Class “Habit”
00:04:22
Implement the “HabitsAdapter” - Part I
00:05:01
Implement the “HabitsAdapter” - Part II
00:03:36
Implement the “HabitsAdapter” - Part III
00:09:44
Chapter 8 : Kotlin for Android – Let Users Create Habits
Introduction
00:01:36
Add a Menu
00:01:57
Add a Second Activity
00:03:10
Use Intents to Switch Activities
00:07:14
Challenge Solution
00:08:01
Let Users Choose an Image
00:06:44
Get the Selected Image Back (onActivityResult)
00:08:11
Show Error Messages to the User
00:07:39
Code Along: An Extension Function for “EditText”
00:03:43
Chapter 9 : Kotlin for Android – Use SQLite the Kotlin Way!
Introduction
00:01:11
Introducing SQLite
00:01:28
Define the Contracts
00:04:14
Implement the Database Helper
00:06:32
Store a Habit to SQLite
00:08:03
Implementing Secure Transactions (that support Rollback)
00:04:09
Clean Code: Improving Transactions in Kotlin
00:06:51
Clean Code: Further Improving Transactions and Performance
00:06:33
Store the Habit in “CreateHabitActivity”
00:09:22
Read All Habits from SQLite
00:09:01
Challenge Solution
00:04:27
Challenge Solution
00:07:58
Add Files to the Virtual Device (Excursus)
00:01:43
Start your Free Trial Self paced Go to the Course We have partnered with providers to bring you collection of courses, When you buy through links on our site, we may earn an affiliate commission from provider.
This site uses cookies. By continuing to use this website, you agree to their use.I Accept