1. Functions don't have to be in a class. 2. Functions are defined using "fun". E.g.: with main: fun main() { ... } (same as public static void main() in Java if not in a kotlin class) 3. Semicolons are optional. 4. val for final, var for changeable variables. val test = "string" -> final String test = "string" 5. Automatic type inference. Force with: var test: String = "string" 6. Nullable types. Use ? to make a variable nullable. e.g.: var test: String? = "string" 7. String joining with + works just like in Java, C# etc., but there are also string templates: println("Test ${5 + 5}") -> with { for complex expressions println("Test $name") -> without { for just referencing a variable 8. Arrays. Accesing is the same as in java. Creating with: val testArray = arrayOf(1, 2, 3, 4)
Excellent tutorial, thank you for this. One criticism - please zoom in on code for future videos, makes it easier to read for people on the go watching on a smaller screen.
Second that! Excellent tutorial. He only needed eight minutes and twenty seconds to convince me never to consider developing for Android. I never realized how much nonsense you have to put up with.
Thank you for making this crash course. It was just what I was looking for (while ramping up on a Kotlin project, and being an absolute n00b to the language)
Thanks! This was much better than the extreme beginner tutorials explaining what a bracket is (useful, but not really my cup of tea after years of coding)
Great video! Here's 4 tips for following videos, free of charge: 1) Zoom in your code 2) Use a dark theme, for the love of God 3) Clean up the code between different examples, do not just comment them out 4) Blank lines really go a long way to make your code more readable Overall, the video is pretty good at introducing the subject tho! Keep it up!
Could somebody please iterate over all the Kotlin things that this tutorial hasn't touched? I would like to know what else should I learn about Kotlin.
Excellent. I really liked the way you taught. Honestly I didn't missed any concept and the real time examples you gave were great. Keep posting more. cheers :)
Mate, what you call an "immutable variable" has a simple comprehensible name - it's called a CONSTANT. Immutable variable - variable that doesn't mutate, variable that doesn't variate - that's an oxymoron, how did you even come up with this? A CONSTANT - that's what it is.
44:40 "it looks like Kotlin code" it looks like bull crap to me - putting it in one line makes it super unreadable AND prone to errors AND you will not see history of changes in VCS because history is per LINE ... so >>> don't do that kids
No. There is a slight difference. A val can be assigned with a var. But a const cannot. Val variable need not know its value at compile time. But a const needs to be assigned before compile time. const is usually used for known constants, for instance, const val timespan = 30. Hope this answers your question.
even the first second already looks completly different and makes this tutorial outdated. In create new project there is no such thing as Kotlin stuff you showed. And src folder is missing, ok I created it. But then I can only create .kts or .ws.kts files, but no .kt file ........
Disappointing. I was bored already in the begining of the video. If you are an experienced java developer and want to save time and quickly get into the kotlin language by watching this, then be aware it won't work.
consider editing your videos and planning out what you want to say before saying it. you speak very slowly and say uhh all the time.This couldve been a 10 minute video.
1. Functions don't have to be in a class.
2. Functions are defined using "fun". E.g.: with main: fun main() { ... } (same as public static void main() in Java if not in a kotlin class)
3. Semicolons are optional.
4. val for final, var for changeable variables.
val test = "string" -> final String test = "string"
5. Automatic type inference. Force with: var test: String = "string"
6. Nullable types. Use ? to make a variable nullable. e.g.: var test: String? = "string"
7. String joining with + works just like in Java, C# etc., but there are also string templates:
println("Test ${5 + 5}") -> with { for complex expressions
println("Test $name") -> without { for just referencing a variable
8. Arrays. Accesing is the same as in java. Creating with:
val testArray = arrayOf(1, 2, 3, 4)
I recommend watching at 2x speed
thank you!
I run everything at 2x unless they have a really thick foreign accent and then I go with 1.5x
haha i do this for like eveything :)
@@jefflittle8913 XD
Always
Excellent tutorial, thank you for this. One criticism - please zoom in on code for future videos, makes it easier to read for people on the go watching on a smaller screen.
Second that! Excellent tutorial. He only needed eight minutes and twenty seconds to convince me never to consider developing for Android. I never realized how much nonsense you have to put up with.
This video deserves a lot more likes and views than it's received. Thanks for making this clear tutorial!
Excellent Tutorial! As a seasoned Java developer, I found it exciting without the fluff.
Thank you for making this crash course. It was just what I was looking for (while ramping up on a Kotlin project, and being an absolute n00b to the language)
Thank you for making a concise no fluff tutorial.
Thanks! This was much better than the extreme beginner tutorials explaining what a bracket is (useful, but not really my cup of tea after years of coding)
You know, it is possible to increase font size in Intellij IDEA. There's even a dedicated presentation mode.
if(age >= 21) println("You are allowed to drink!")
**laughs in literally the rest of the world**
Great video! Here's 4 tips for following videos, free of charge:
1) Zoom in your code
2) Use a dark theme, for the love of God
3) Clean up the code between different examples, do not just comment them out
4) Blank lines really go a long way to make your code more readable
Overall, the video is pretty good at introducing the subject tho! Keep it up!
Many thanks, great tutorial for those who don't need to relearn how to program.
Just searched kotlin crashcourse on youtube. This video is really interesting
Could somebody please iterate over all the Kotlin things that this tutorial hasn't touched? I would like to know what else should I learn about Kotlin.
Nice class.. just increase a font bit
Great tutorial keep it up, but I will suggest to use some zoom tool to make texts readable.
Joined a new team and needed to ramp up on Kotlin. This tutorial is really useful. Thank you to the creator :)
Nice tutorial. Is there a part 2 for it where you explain the advanced features ?
Excellent. I really liked the way you taught. Honestly I didn't missed any concept and the real time examples you gave were great. Keep posting more. cheers :)
Wow.. awesome but what about data class in Kotlin. If you get time, please reply..
Excellent intro! Thanks mate!
good tutorial, I just would like if you had used dark theme intellij
Very nice tutorial, but only possible to watch at 1.5x speed
thank you for this crash course :-)
just the useful stuff.
you could have make text bigger i can't see the text clear
Grate man ! Thank you, greetings from Guatemala 🤙🏽
Thanks a lot for your work , and your English help me to understand more than you think.
Good luck, I like your video ♥️
Thank you for this amazing explanation, I was wearied about difficulties of converting to Kotlin but you make it looks super easy and smooth.
Nice tutorial. Thanks, alot.
Thank you for the video. It was a nice Kotlin main features compilation.
Screens too small zoom in or 30pt font. This is a presentation.
2 mins in and it's hard to read the code given the size of the font.
Well done. This is exactly what I was looking for.
I watched on 2x speed but the guy is good
Great video ! you make it easier to follow then other video
Perfecto...do u have a video that's is more advanced? This one is an introduction
Btw...you explain very well
Cheers
great video, please add timestamps
Thank you for the great tutorial!
Thank you! Nice job :)
very bright screen display and very little fonts size
Super helpful. Needed a refresher.
great video, exactly what i was looking for!
keep up the good work.
Choose a larger font man!
Finally! We got chicken. 😀
Thank you very much , very helpful
Thanks for a great and thorough tutorial!
Where can we find the exercise for the practice plz?
Mate, what you call an "immutable variable" has a simple comprehensible name - it's called a CONSTANT.
Immutable variable - variable that doesn't mutate, variable that doesn't variate - that's an oxymoron, how did you even come up with this?
A CONSTANT - that's what it is.
Thanks so much!!! It's very interesting so I'll keep on investigating.
Great vid
Thanks sir!
understanding the difference between colon and semicolon is crucial
I loved it bro! keep it up!
I don't understand why he doesn't need an argument for the when ( 36:45 )
Loved it, great video
Danke
very useful.
Downvoted because this is Kotlin for Programming Beginners, not for Java Developers. We want a much faster and the big design points first.
thanks
Perfect at x2 speed.
thx🖐
10/10
Useless because of the font size.
can i learn android development without know java at all
of course you can.
but you will not understand most of Android legacy code which is .... like 100% percent :P
44:40 "it looks like Kotlin code" it looks like bull crap to me - putting it in one line makes it super unreadable AND prone to errors AND you will not see history of changes in VCS because history is per LINE ... so >>> don't do that kids
this is probably the only good comment in the entire comment section haha
Totally agree
Cannot even read the code at 480p.
"a val variable is immutable" doest't that make it a constant, not a variable
No. There is a slight difference. A val can be assigned with a var. But a const cannot. Val variable need not know its value at compile time. But a const needs to be assigned before compile time. const is usually used for known constants, for instance, const val timespan = 30. Hope this answers your question.
It is good for beginners but not for java developers!
17:55
what about if the person understand JavaScript
Wow Obama is teaching me Kotlin :D
even the first second already looks completly different and makes this tutorial outdated. In create new project there is no such thing as Kotlin stuff you showed. And src folder is missing, ok I created it. But then I can only create .kts or .ws.kts files, but no .kt file ........
The software part might be different, but everything regarding code (which is the important part anyways) is the same.
Its a little bit like Typescript ...
Disappointing. I was bored already in the begining of the video. If you are an experienced java developer and want to save time and quickly get into the kotlin language by watching this, then be aware it won't work.
consider editing your videos and planning out what you want to say before saying it. you speak very slowly and say uhh all the time.This couldve been a 10 minute video.
too slow :(
2x speed
Did anyone count the 'ah's and 'uhm's?
oh my god, it is a dumbed down scripting language.
Waste of time
Kotlin: A bull shitty Typescript with some Javascript flavours and C# extensions.