Do you want to learn Kotlin? Then you are absolutely right in this tutorial:
In this series of videos, I am gonna showcase useful Kotlin features that will help you to write Kotlin code in an idiomatic fashion such that it follows the best practices of this beautiful programming language. For each episode, examples in a public Git repository are available to optionally see how each idiom would be applied. But I will also cover all of that in the videos themselves.
In this first episode, we're going to look at scope functions. I will walk you through why they exist, which there are, and what their typical use cases are like. For each scope function, I am gonna give an example for your understanding. When using them, your Kotlin code will be more clean and concise for future readers.
This episode's examples you can find right here:
https://github.com/The-Self-Taught-So...
Timestamps:
00:00:00 Introduction
00:01:18 Why do we need scope functions?
00:02:13 Which scope functions are there?
00:02:45 Optionally, follow along with me
00:03:05 The 'also' scope function
00:10:28 The 'apply' scope function
00:23:18 The 'with' scope function
00:27:31 The 'run' scope function
00:36:15 The other 'run' scope function
00:43:49 The 'let' scope function
00:46:30 Final words
If you have any suggestions for content or feedback please leave them in the comments.
In case you enjoyed this video, make sure to leave like, subscribe and share it with anyone you could consider interested!