Kotlin for Android & Java Developers: Clean Code on Android

Kotlin for Android & Java Developers: Clean Code on Android
Kotlin for Android & Java Developers: Clean Code on Android

English | MP4 | AVC 1280×720 | AAC 44KHz 2ch | 9h 15m | 1.77 GB
eLearning | Skill level: All Levels


Become a professional Kotlin developer and write cleaner code in your Android apps than in Java, avoid boilerplate code

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.

What You Will Learn

  • Write clean code with Kotlin
  • Avoid ceremony and boilerplate code around Android APIs
  • Use functional programming to write concise, expressive code
  • Create Android apps with Kotlin
  • Write readable SQLite transactions using extension functions in Kotlin
  • Use the Kotlin Android Extensions to avoid findViewById()
  • Create multiple activities, layouts and menus
+ Table of Contents

Introduction
1 What You’ll Learn in this Course
2 Make the Most of this Course!
3 Who’s Using Kotlin?

Get Ready
4 Introduction
5 Install the Java JDK 8
6 Install Android Studio
7 Set Up a Project in Android Studio
8 Recap

Kotlin Basics
9 Introduction
10 Variables and Data Types
11 Null Safety in Kotlin
12 Conditionals: “if” Expressions
13 Conditionals: “when” Expressions
14 Collections
15 “for” Loops
16 “while” Loops
17 Functions
18 Get Ready for Serious Kotlin Coding (Set up IntelliJ IDEA)
19 Create a main() Function
20 Named Arguments & Default Parameter Values
21 Exceptions
22 Why No Checked Exceptions?
23 Recap

Functional Programming
24 Introduction
25 What is Functional Programming?
26 Functional Programming II
27 Lambdas & Higher-Order Functions
28 Use map() and flatMap()
29 Use take () and drop()
30 Use zip ()
31 Chain Functions Together
32 Lazy Sequences
33 Case Study: Performance of Lazy Sequences
34 Code Along: Infinite Lazy Sequence of All Prime Numbers
35 Use “let” Operator for Scoping and Nullables
36 Use “with” for Many Calls on the Same Object
37 Use “use” for Closeable (like try-with-resources)
38 Inline Functions
39 Recap

Object-Orientation in Kotlin
40 Introduction
41 Classes
42 Properties with Getters & Setters
43 Primary and Secondary Constructors
44 Methods
45 Extension Functions
46 Data Classes
47 Enums
48 Inheritance
49 Code Along: Inheritance Example
50 Abstract Classes
51 Interfaces
52 Overriding Rules
53 Smart Casts
54 Visibilities
55 Companion Objects for “Static” Members
56 Object Declarations as Singletons
57 Packages and Imports
58 Generic Classes
59 Generic Functions
60 Covariance
61 Covariance: Java vs Kotlin
62 Covariance vs. Contra variance: “out” and “in”
63 Recap

Kotlin for Android – Fundamentals
64 Introduction
65 Create the App Project
66 Understand the Android Versions
67 Create a CardView Layout and Add UI Elements
68 Use the “Kotlin Android Extensions”
69 Challenge Solution

Kotlin for Android – Implement a RecyclerView
70 Introduction
71 What is a RecyclerView?
72 Create the Data Class “Habit”
73 Implement the “HabitsAdapter” – Part I
74 Implement the “HabitsAdapter” – Part II
75 Implement the “HabitsAdapter” – Part III

Kotlin for Android – Let Users Create Habits
76 Introduction
77 Add a Menu
78 Add a Second Activity
79 Use Intents to Switch Activities
80 Challenge Solution
81 Let Users Choose an Image
82 Get the Selected Image Back (onActivityResult)
83 Show Error Messages to the User
84 Code Along: An Extension Function for “EditText”

Kotlin for Android – Use SQLite the Kotlin Way!
85 Introduction
86 Introducing SQLite
87 Define the Contracts
88 Implement the Database Helper
89 Store a Habit to SQLite
90 Implementing Secure Transactions (that support Rollback)
91 Clean Code: Improving Transactions in Kotlin
92 Clean Code: Further Improving Transactions and Performance
93 Store the Habit in “CreateHabitActivity”
94 Read All Habits from SQLite
95 Challenge Solution
96 Challenge Solution
97 Add Files to the Virtual Device (Excursus)

Download from Turbobit

Download from DepositFiles