Course Overview
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
Work around 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
Why Take This Course?
I've been involved with Kotlin since late 2015, before it was released in its first stable version. As the instructor of the course "Kotlin for Beginners", I know which topics students are interested in or get stuck with.
My first Kotlin course is recommended from the official Kotlin website and from the official Android website as a resource to learn Kotlin for Android. So you can be sure to get quality teaching here.
After this course, you'll be able to confidently use Kotlin for any kind of project -- but we'll of course apply what we learn to Android app development in this course.
What Makes This Course Special?
Since Google's #IO17 announcement to officially support Kotlin on Android, many new courses on the topic have been released -- which is great because it further helps to spread the language.
What makes this course special is that while most other courses do not teach good coding style, this course will focus on producing clean code and teaches you to make use of Kotlin's amazing features to actually write better code than in Java. This way, you will get a huge benefit using Kotlin instead of Java, e.g. by avoiding boilerplate code around many Android APIs.
What This Course Is NOT
This course is not an Android reference, I assume you already have at least some Android experience. Instead, you'll learn to write cleaner code for your apps by applying Kotlin's powerful language features to avoid unnecessary ceremony around Android APIs. Also, at the end of the course, you'll be able to use Kotlin for any kind of project -- not just for Android apps.
What Students Say About Me (taken from "Kotlin for Beginners")
"TLDR; One of the best Kotlin course for beginners on Udemy! I took some time to write this review and wanted to finish the course THEN watch other courses offered here on Udemy and THEN want to see how good Peter was in teaching me basics of Kotlin so that I can apply the knowledge while writing actual android apps. And I am happy to report that it has helped me immensely. It wouldn't be wrong if I say that the I was easily understanding the WHYs and WHATs even if the teacher wasn't explaining in detail in other courses... Thank you Peter! You have taught me well! [...]"
- Hasaan
"Great introduction to Kotlin and programming for beginner programmers!"
- Per-Erik
"Easy to follow, instructor goes at a great pace that's friendly for beginners."
- Ronaldo
"beyond excellent!!!!"
- Mike
"Great start so far. Looking forward to a great course. Best online course I have taken, by far!!"
- James
"Found this to be a very good course to get an overview of Kotlin. Everything was explained clearly and the examples and exercises were very helpful. I'm glad that Peter is considering a course for Android using Kotlin since I'm curious about that subject."
- James
What You'll Learn
How to set up all you need for Android development using Kotlin (e.g. how to install Android Studio)
The basics of Kotlin: variables, null safety, immutability, conditionals, loops, functions, exception handling
Functional programming in Kotlin: higher-order functions, lambda expressions, lazy evaluation, lazy sequences, the Kotlin standard library
Object-oriented programming in Kotlin: all you know from Java + data classes, extension functions, smart casts, object declarations, differences from Java concerning inheritance
Android development with Kotlin: creating activities, layouts, menus, click listeners, working around unnecessarily complex Android APIs, improving SQLite transactions with extension functions, avoiding null in your code
------
What is Kotlin?
Kotlin is a modern language for the JVM, and the only officially supported language on Android beside 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 courses shows you what language features I mean, and how you can apply them in order to write world-class code.
FAQ
FAQ area empty
Course curriculum
Chương 1 Introduction 3 bài · 10 phút
Chương 2 Get Ready 5 bài · 25 phút
-
Introduction 1:44
-
Install the Java JDK 8 3:11
-
Install Android Studio 7:11
-
Set Up a Project in Android Studio 12:04
- Recap Học thử 0:28
Chương 3 Kotlin Basics 17 bài · 1 giờ 28 phút
-
Introduction 1:26
- Variables and Data Types Học thử 8:26
- Null Safety in Kotlin Học thử 8:55
-
Conditionals: "if" Expressions 8:20
-
Conditionals: "when" Expressions 8:35
-
Collections 9:41
- "for" Loops Học thử 5:15
-
"while" Loops 3:41
-
Functions 6:22
-
Get Ready for Serious Kotlin Coding (Set up IntelliJ IDEA) 4:59
-
Create a main() Function 2:32
-
Challenge: Reading the User's Name from the Console
-
Challenge: Using Collections and Loops
-
Named Arguments & Default Parameter Values 5:43
-
Exceptions 6:12
-
Why No Checked Exceptions? 5:31
-
Recap 1:52
Chương 4 Functional Programming 17 bài · 1 giờ 37 phút
-
Introduction 1:22
-
What is Functional Programming? 3:10
-
Functional Programming II 4:14
-
Lambdas & Higher-Order Functions 10:05
-
Use map() and flatMap() 7:46
-
Use take() and drop() 6:27
-
Use zip() 4:44
-
Challenge: Functional Programming for Data Analysis
-
Chain Functions Together 6:19
-
Lazy Sequences 8:17
-
Case Study: Performance of Lazy Sequences 8:10
-
Code Along: Infinite Lazy Sequence of All Prime Numbers 12:28
-
Use "let" Operator for Scoping and Nullables 6:26
-
Use "with" for Many Calls on the Same Object 3:55
-
Use "use" for Closeable (like try-with-resources) 4:29
-
Inline Functions 6:59
-
Recap 2:23
Chương 5 Object-Orientation in Kotlin 24 bài · 2 giờ 33 phút
-
Introduction 1:58
-
Classes 2:26
-
Properties with Getters & Setters 6:01
-
Primary and Secondary Constructors 8:26
-
Methods 3:46
-
Extension Functions 6:23
-
Data Classes 9:50
-
Enums 6:12
-
Inheritance 5:21
-
Code Along: Inheritance Example 5:57
-
Abstract Classes 5:46
-
Interfaces 7:18
-
Overriding Rules 8:52
-
Smart Casts 7:55
-
Visibilities 8:47
-
Companion Objects for "Static" Members 6:31
-
Object Declarations as Singletons 5:09
-
Packages and Imports 4:15
-
Generic Classes 7:52
-
Generic Functions 4:59
-
Covariance 7:06
-
Covariance: Java vs Kotlin 10:34
-
Covariance vs Contravariance: "out" and "in" 9:44
-
Recap 1:46
Chương 6 Kotlin for Android -- Fundamentals 7 bài · 33 phút
-
Introduction 2:50
-
Create the App Project 4:51
-
Understand the Android Versions 3:08
-
Create a CardView Layout and Add UI Elements 9:43
-
Use the "Kotlin Android Extensions" 8:55
-
Challenge: Set Texts and Image Source Programmatically
-
Challenge Solution 3:30
Chương 7 Kotlin for Android -- Implement a RecyclerView 6 bài · 29 phút
-
Introduction 1:01
-
What is a RecyclerView? 5:17
-
Create the Data Class "Habit" 4:22
-
Implement the "HabitsAdapter" - Part I 5:00
-
Implement the "HabitsAdapter" - Part II 3:35
-
Implement the "HabitsAdapter" - Part III 9:43
Chương 8 Kotlin for Android -- Let Users Create Habits 10 bài · 48 phút
-
Introduction 1:36
-
Add a Menu 1:57
-
Add a Second Activity 3:09
-
Use Intents to Switch Activities 7:14
-
Challenge: Build the Activity Layout
-
Challenge Solution 8:01
-
Let Users Choose an Image 6:44
-
Get the Selected Image Back (onActivityResult) 8:11
-
Show Error Messages to the User 7:39
-
Code Along: An Extension Function for "EditText" 3:42
Chương 9 Kotlin for Android -- Use SQLite the Kotlin Way! 15 bài · 1 giờ 11 phút
-
Introduction 1:11
-
Introducing SQLite 1:28
-
Define the Contracts 4:14
-
Implement the Database Helper 6:32
-
Store a Habit to SQLite 8:03
-
Implementing Secure Transactions (that support Rollback) 4:08
-
Clean Code: Improving Transactions in Kotlin 6:51
-
Clean Code: Further Improving Transactions and Performance 6:33
-
Store the Habit in "CreateHabitActivity" 9:22
-
Read All Habits from SQLite 9:00
-
Challenge: Improve SQLiteDatabase.query(...)
-
Challenge Solution 4:27
-
Challenge: Improve Cursor.getString(...)
-
Challenge Solution 7:58
-
Add Files to the Virtual Device (Excursus) 1:42
Chương 10 Bonus 1 bài
-
Bonus: Reach Your Full Potential As A Software Developer
Requirment
-
Some programming experience (e.g. Java)
-
At least some Android experience
Outcomes
-
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
0 Student
2 Courses
0 review