Kotlin for Beginners: Learn Programming With Kotlin
- 6.5 hours on-demand video
- 1 article
- 7 downloadable resources
- Full lifetime access
- Access on mobile and TV
- Certificate of Completion
Get your team access to 4,000+ top Udemy courses anytime, anywhere.Try Udemy for Business
- Create professional applications using Kotlin, the new Java-based programming language developed by Jetbrains
- Understand the concepts of the Kotlin language and how it integrates neatly with Java
- Understand the basics of object-oriented software development, the most important development paradigm
- Understand the principles behind other object-oriented languages like Java, C++, PHP, C#, Scala, or Swift
- Use Intellij, the popular Java (and Kotlin) IDE, to write code effectively and professionally
- Read code and write your Kotlin code as well
What YOU will create while following along this course, starting out with a simple "Hello World" program and creating more sophisticated programs over time.
After the course, you'll have all the fundamentals you need to start diving into other programming languages and learn more advanced concepts. The course will also be extended over time to cover more such advanced topics.
This course will start with the basics and cover conditional statements, functions, lists and arrays, classes and objects, inheritance and more about object-orientation. We will also learn some functional programming examples.
Udemy interface: Please make sure you are watching in HD! Also set your playback speed according to your preferences, that's a really useful feature. For questions, check out the discussions.
Following along: Take all the quizzes! They only take a few minutes and recap the most important points. Rock it in the discussions(!) so that I can help you when you get stuck and improve this course. Code along in every lesson, bring your own projects to life, and make it to the end!
Kotlin is an object-oriented languages with functional features as well. It facilitates many things, provides null safety and offers a concise and readable syntax.
This lectures guides you through the process of downloading the latest Java Development Kit (JDK) we need to use Kotlin.
In this step, we download the free and powerful IntelliJ Community Edition from the Jetbrains website. This is an Integrated Development Environment (IDE) that provides awesome support for Kotlin, Java, and many other languages. It is also the IDE used by Google for Android App Development.
In this lecture, we use Kotlin interactively in the REPL (read-eval-print-loop) as a calculator, learn how to assign values and run some simple commands.
This lecture covers how to create variables in Kotlin, when to use val vs. var and why you prefer val over var when creating variables to enforce immutability.
This lecture covers all basic types available in Kotlin plus strings to store text.
Basic types in Kotlin include Byte, Short, Int, Long, Float, Double, Boolean, and Char. This lecture guides you through each of them and their differences.
Expressions are pieces of code that have a value, such as 4*(3+5) or listOf(1,2,3,4,5). We can assign the values of expressions to variables and the Kotlin REPL will print an expression's value right below it whenever we type in an expression.
Statements on the other hand don't carry a value, such as print("Hello there") or val a = 4. Assignments are a special type of statements because they also don't have a value.
In contrast to languages like Java, Kotlin offers null safety through explicit nullable types!
Learn how to create nullable variables and why you should avoid this. You will also understand the advantages of having to make variables explicitly nullable to avoid NullPointerExceptions.
Learn when to use if statements vs. when statements.
If statements allow defining arbitrary conditions and are the most common choice to handle control flow. In some cases however, when statements express your intentions better. That is, when you want to switch application behavior based on some distinct values of a variable.
When statements can always be simulated by if statements.
In Kotlin, we can use conditional statements as expressions with a value. In fact, every if or when statement is an expression in Kotlin and we can, for example, save its value into a variable.
The last expression in each block of an if or when expression defines the value of the whole if or when expression if that block is executed.
Learn about two super important data types of every programming languages: Arrays & Lists!
What are arrays? What are lists? This lecture goes through each of them and explains their differences and similarities. You will also learn when to use arrays vs. lists which is a question you find many people asking online.
The break and continue statements allow you to completely skip over a loop or to skip to the next iteration, respectively. So with break, you can stop a loop and go on with execution right after it. Whereas with continue, you can skip to the next iteration of a loop to avoid unnecessary computation.
The break statement is useful, for example, when you are only interested in the first occurance of something. For instance, to check if an array contains a certain value, you just need to check until you find it. After finding that first occurance, you can skip the rest of the loop.
The continue statement is useful to skip computations in unnecessary iterations. For example, if you only want to do something with String of length > 2, you can skip iterations with a shorter string when you iterate over a list of strings.
This lecture teaches you one of the most important concepts that applies not only to Kotlin but all other programming languages as well: creating and using functions!
Functions are self-contained pieces of code that can take in parameters and may return a value. Parameters allow passing in information into the function when calling it, so that the function can then work with that data and perform computations on it.
Let's see how to reverse a list using a loop. This is a functionality that often comes in handy when working with ordered collections like lists and arrays.
This code along gives you some more intuition on how to work with loops if you've never worked with them before. It also helps you internalize how to write loops in Kotlin. And of course, it's guides you into what a programmer does all day: implementing algorithms. Reversing an ordered collection is great little algorithm to start with.
Object-orientation is the most widely used software development paradigm. Popular programming languages are mostly focused on object-oriented development, including Java, Python, C++, C#, PHP, and Swift.
This lecture explains all the major elements of object-orientation: classes, objects, interfaces, data, and methods. It also goes through the concept of creating an abstraction of the real world by modeling objects.
Let's create our first class in Kotlin!
This lectures guides you through creating basic classes, adding properties to classes, creating objects from it and accessing its properties. Classes are like blueprints from which we can create objects and they contain properties and methods. The next lecture will cover methods.
Interfaces are like contracts that classes may adhere to (meaning they implement that interface). This lecture explains...
- how you can create interfaces,
- what constraints there are in interfaces,
- the importance of interfaces in object-oriented programming,
- and the differences compared to classes.
- We will go through all setup you need in order to use Kotlin
- You must be able to install new software on your computer (JDK + IntelliJ), we will go through the actual process inside the course.
>> This is the only Udemy course that is referenced from the official Kotlin website as well as the official Android developers website for people who want to learn Kotlin, whether for Android or other purposes!
>> Learn programming in Kotlin, the most beautiful modern programming language based on Java!
>> Join this beginner-friendly course to learn to write code with an awesome and easy-to-learn language!
>> Expand your expertise as a Java or Android Developer and improve the quality of your code!
>> I'll answer every question you have, help you personally if you get stuck and listen to your feedback! Join 15,000+ happy students of mine on Udemy!
This course will teach you programming in Kotlin! We begin with the basics so this course is completely suitable for beginners. You will put what you learn into practice in several coding challenges. So at the end, you'll be able to create your own applications in Kotlin.
If you're an Android developer, you can use this course to get up to speed with this awesome language. Kotlin will allow you to maintain a cleaner and more expressive code base, use concepts that go beyond even Java 8, and write more robust apps for Android.
Topics covered include:
Variables & nullable types (null safety)
Conditionals: if and when
Loops: for and while
Object orientation: classes, objects, interfaces, inheritance etc.
Data classes (a handy feature in Kotlin)
UPDATE: more object-orientation + binary and hexadecimal numbers
UPDATE: the information hiding principle + generics
This course also covers object-orientation, the major development paradigm you need to grasp in today's world. But we will also look at functional programming concepts that will make your life much easier.
Once you understand these, you will also be able to understand other object-oriented languages, including Java, PHP, C++, C#, Scala, or Swift. They all use this same basic paradigms.
So get in now to help shape this course and become part of the community inside!
- You do not need programming skills, we will start from scratch and slowly make our way to intermediate and more advanced topics
- You should be excited to learn an awesome new programming language!
- You will need basic skills in handling a PC, so you should know how to install and run applications on your computer.
- Android developers who want to get started with Kotlin