Hands-on Kotlin Tutorial - Kotlin at Light Speed, Part 1: Getting started

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey everyone and welcome to Ruck the jvm's cotlin at light speed mini course in which in a couple of hours you're going to have a practical Taste of this amazing programming language my name is Daniel and I am a software engineer and instructor I made this website called Rock the gvm in which I teach a variety of programming languages including cotlin Scola and many others my courses have reached more than 100,000 engineers at this point and I've also had the privilege of running in-person training sessions for some of the best companies in the world including Google dby apple and many others so you're in good hands for this course my specialties include Scala cotlin Big Data with Apache spark and a variety of other libraries and Technologies if you want to check out my work you can go to Ruth jm.com I have hundreds of hours literally of free and premium material and you can reach out to me at Daniel Roth gm.com for any questions about this material that you're watching right now or if you want to have me run some training sessions for your team you can reach out to me at danielr gm.com now cotton is an amazing programming language it runs on top of the Java virtual machine but not only it's also a multi-paradigm language in the sense that you can style your code differently so it supports multiple modes of thinking including functional programming as we will see in some of the later parts of this series and it offers multi-platform capabilities so you can use the same cotlin code to run jvm applications for other server side or Android or multi-platform applications including the web and even iOS its popularity has has been increasing and the developers are increasingly well paid so if you're looking to grow your career as a software engineer you have every reason to learn the cotlin programming language which is why I made this cotlin at light speed miniseries in which I'm going to teach you the fundamentals of cotlin in just a couple of hours the time it takes to watch a movie the requirements are that you have programmed before because I'm not going to stress on the computer science fundamentals and this is a pretty fast-paced course so I'm going to require your focus here and if you're willing to follow follow me for the next couple of hours you're also going to get some code under your belt because we're going to write a couple of hundred lines of code from scratch because I believe that code is King and we should write it from scratch in order to learn best and this is what we're also going to do in these videos now if you want to check out codlin at light speed on Rock the jvm it's available for free as an online course and I'm going to give you the entire code that I write on camera so that you can use it for whatever project or for your own learning as well as a download feature that will allow to keep videos for offline View at any time that you want now this miniseries is meant to give you a sense of what cotlin looks like and how you can use it if you are interested in cotlin really deep and really practical I have a long form video course called cotlin Essentials in which we are going to write not hundreds but thousands in lines of code including a little practical project with image processing which I think you'll find pretty cool so if you want you can check out cotton Essentials on Rock the gvm if you want to get some really hands-on experience with Callin so please enjoy this miniseries and I hope you'll get a lot of value out of it I'm not going to waste any time so let's get started all right at this point we're ready to get started with cotlin in this miniseries cotlin at Lightspeed in this part I'm going to show you what you need to do to get started so without further Ado I'm going to ask you to go to Jet brains.com slida this is where we're going to install intelligy idea the development environment for cotlin and also Java and other languages so go to jetb brains.com idea hit this download button and then navigate to The Community Edition section here on the page and hit this black download button to download intell G idea Community Edition which is free so go ahead and download that if you don't have intell G idea already the setup should be quite straightforward so you can pause the video and download and install intell G idea now cool after you install intell G idea the next thing that we want to make sure you have installed is a Java development kit or jdk at the moment of this recording we have jdk long-term support versions 177 and 21 I recommend that you use jdk 17 so you can do jdk 17 downloads and you can go to the Oracle homepage and you can install Java 21 and Java 17 for your platform so Linux Mac OS and windows and for every operating system you have various installers and installer kinds for example for Mac you have for Intel which is x64 and arm 64 for Apple silicon and likewise for Windows Linux you have various combinations so you can pause the video and download the latest long-term support GDK for your platform now okay sweet so with intell idea and a jdk installed once you open intelly idea it should show something like this with a list of projects if you've worked in intelly idea before I'm going to hit new project and I'm going to select new project here on the left and call this cotlin at light speed I'm going to place it somewhere on my desktop the language from the language selection I'm going to select a cotlin obviously the build system is not really all that important but I'm going to select Maven here and the jdk should have an option here in the drop down if you have a jdk already if you don't you can go add the jdk and point to the path where you've just downloaded the Oracle jdk from the Oracle homepage so make sure you have a jdk here in the drop down I think you can also set intellig to download a jdk for you if the Oracle jdk cannot be found or if you've placed it somewhere else so you can download here in intell J as well so after you've selected these settings name the project location klin Maven and a jdk you can hit create and this is going to open up in a snap and this project is a plain intell J project for cin we're going to spend all of our time in this miniseries under the source folder so in SRC Main cotlin and I'm going to create a new package I'm going to call this com. Ro the jvm this is standard practice in jvm languages for example in schola and in Java this thing is probably sick a name nature to you if you've done any one of those languages before and here under comrock the gvm I'm going to right click and I'm going to select new cin class or file I'm going to call this playground and I'm going to make it an object so scroll all the way down and select object here I'm going to describe what an object is later in this miniseries and I'm going to type in main which will help intelligy idea suggest a template for you which is a runnable application so once you type in Main and hit enter or main control space and enter you'll get this little template for a runnable cotlin application so this is now runnable so if you right click on the code and hit run this will run a standalone jvm application where you can hit any one of these play buttons either here in TJ or here next to the code on the left you can say run playground and it will do the same thing so this will compile and run this coton code which currently doesn't do anything if you wanted to do something you can say print line so print Ln for example ready to rock so you can right click and run this and you'll have your so-called hello world application up and running so we have ready to rock and at this point we can get started with some cotlin features so join me in the next part where I'm going to start discussing the cotlin basics
Info
Channel: Rock the JVM
Views: 1,712
Rating: undefined out of 5
Keywords:
Id: 7aLlv87l2O4
Channel Id: undefined
Length: 7min 16sec (436 seconds)
Published: Fri Mar 08 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.