Kotlin is an easy-to-learn, pragmatic language that has adopted the best traits of other popular languages such as Java, C#, Python, Groovy, and Scala. This video tutorial is your one stop guide to getting started with Kotlin programming, covering the basics, object-oriented features, and even functional programming in Kotlin.
You’ll take your first steps in Kotlin programming by building a simple “Hello, Kotlin” program. You’ll explore the basics such as types and syntax, and also basics of object-oriented programming such as classes and inheritance. Next, you’ll dive into Kotlin objects and functions, and see how they’re different from other programming languages. You’ll learn to organize your code and simplify your coding experience with the help of different functions and statements in Kotlin. From there, you’ll lwork with collections and streams, employ loops in your code, and filter data with the help of different collection operations.
Finally, you’ll dive into Kotlin’s functional aspects, where you’ll work with extension functions and values, model functions, and overload functions in Kotlin. By the end of this video tutorial, you’ll be well-versed with Kotlin’s fundamental features, and will be ready to begin your career as a Kotlin developer.
About the Author
Edvin Syse is a Java developer in a Norwegian hosting company where he works with systems integration and tools development, both back end and front end. He is the project lead for TornadoFX – a JavaFX Framework for Kotlin, as well as several other open source projects, amongst them FXLauncher – a native auto updating launcher for Java applications. He has worked with Java and JVM technologies for more than 15 years.
This video tell us what is the relationship between classes, packages, and their containing file.
This video shows how do you extend classes and implement interfaces in Kotlin.
This video will explain when you should allow a class to be extended and when is it more appropriate to keep it closed.
We often need to create anonymous inner classes as well as static properties and functions. The mechanism differs vastly from Java. This video will explain how it can be achieved in Kotlin.
Checking types and accessing properties after performing a cast often leads to casting exceptions. This video will explain Kotlin has constructs that minimize effort and reduce bugs related to casting.
Conditional flow control operations is a must in any application. This video will explain what constructs Kotlin offers in this regard.
String concatenation is cumbersome and error prone. We will see important features that make Kotlin more comfortable to work with string literals.
When you need to pass one or more items to a function, but those items are not already in a collection, varargs is a helpful tool. This video will help us to understand what is varargs.
Filtering collections to create a new list of matches can be cumbersome in Java. In this video, we will see how Kotlin’s functional approach to filtering makes it a breeze.
Ranges and progressions are handy utilities with a vast range (pun intended) of use cases. In this video, we will learn to master them which will help you to reduce boilerplate and make your intent clear.
Adding functionality to existing classes outside of your control has previously not been possible. The best you can do is to add static helper functions. This video will help us to understand a seamless way that Kotlin offers to extend classes within the confines of the JVM.
Extending classes with fields suffer the same issues as extending functions. This video will show how Kotlin offers a similar approach to deal with this.
Passing a function as a parameter to another function is called a higher order function. We’ll explore how to combine those with “lambda with receiver” to enable beautiful, natural APIs.
This video will learn to override functionality for operators like + and –. This can greatly improve the readability of an API as long as you use it responsibly.
Kotlin has attempted to improve both generics syntax and usage. Learn how to work with generics in Kotlin, and how it provides better type inference and simplification to the generics model.
Skipping the parenthesis and dots when calling a function with a single parameter is made possible with infix functions. In this video, we will learn to create operator like functions calls to improve the readability of your APIs.
Packt has been committed to developer learning since 2004. A lot has changed in software since then - but Packt has remained responsive to these changes, continuing to look forward at the trends and tools defining the way we work and live. And how to put them to work.
With an extensive library of content - more than 4000 books and video courses -Packt's mission is to help developers stay relevant in a rapidly changing world. From new web frameworks and programming languages, to cutting edge data analytics, and DevOps, Packt takes software professionals in every field to what's important to them now.
From skills that will help you to develop and future proof your career to immediate solutions to every day tech challenges, Packt is a go-to resource to make you a better, smarter developer.
Packt Udemy courses continue this tradition, bringing you comprehensive yet concise video courses straight from the experts.