Kotlin Crash Course for Java Developers

Sdílet
Vložit
  • čas přidán 26. 08. 2024

Komentáře • 95

  • @Bene31
    @Bene31 Před rokem +41

    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)

  • @averygranum
    @averygranum Před 4 lety +153

    I recommend watching at 2x speed

  • @owenwexler7214
    @owenwexler7214 Před 4 lety +67

    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.

    • @Youtube_Stole_My_Handle_Too
      @Youtube_Stole_My_Handle_Too Před 6 měsíci

      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.

  • @saaqibz
    @saaqibz Před 3 lety +10

    This video deserves a lot more likes and views than it's received. Thanks for making this clear tutorial!

  • @vlaskz
    @vlaskz Před rokem +1

    Excellent Tutorial! As a seasoned Java developer, I found it exciting without the fluff.

  • @shyamhabarakada6295
    @shyamhabarakada6295 Před rokem

    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)

  • @MikeEnRegalia
    @MikeEnRegalia Před 3 lety +13

    You know, it is possible to increase font size in Intellij IDEA. There's even a dedicated presentation mode.

  • @gioac96
    @gioac96 Před 4 lety +11

    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!

  • @pankajkohli9263
    @pankajkohli9263 Před 3 lety +2

    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 :)

  • @khynantoque
    @khynantoque Před 3 lety +3

    Great tutorial keep it up, but I will suggest to use some zoom tool to make texts readable.

  • @rad6626
    @rad6626 Před rokem

    Thank you for making a concise no fluff tutorial.

  • @VijoPlays
    @VijoPlays Před rokem

    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)

  • @GoldenBeholden
    @GoldenBeholden Před 2 lety

    Many thanks, great tutorial for those who don't need to relearn how to program.

  • @pandaDotDragon
    @pandaDotDragon Před 4 lety +5

    thank you for this crash course :-)
    just the useful stuff.

  • @chetanpatteparapu9107
    @chetanpatteparapu9107 Před 2 lety +2

    Joined a new team and needed to ramp up on Kotlin. This tutorial is really useful. Thank you to the creator :)

  • @ProLusor
    @ProLusor Před 3 lety +8

    if(age >= 21) println("You are allowed to drink!")
    **laughs in literally the rest of the world**

  • @pietroroberto6114
    @pietroroberto6114 Před 3 lety +2

    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.

  • @srukshan98
    @srukshan98 Před 5 lety

    Just searched kotlin crashcourse on youtube. This video is really interesting

  • @anwarsosko5963
    @anwarsosko5963 Před 2 lety +3

    Thank you for this amazing explanation, I was wearied about difficulties of converting to Kotlin but you make it looks super easy and smooth.

  • @bodiabdo3107
    @bodiabdo3107 Před 2 lety

    Thanks a lot for your work , and your English help me to understand more than you think.
    Good luck, I like your video ♥️

  • @franklinyoutub
    @franklinyoutub Před 3 lety

    Grate man ! Thank you, greetings from Guatemala 🤙🏽

  • @WhatIsThisAllAbout
    @WhatIsThisAllAbout Před rokem +1

    Nice tutorial. Is there a part 2 for it where you explain the advanced features ?

  • @gersonadr2
    @gersonadr2 Před 2 lety

    Excellent intro! Thanks mate!

  • @omarkhalid4737
    @omarkhalid4737 Před 4 lety

    great video, exactly what i was looking for!
    keep up the good work.

  • @tanvirmasum456
    @tanvirmasum456 Před 4 lety +2

    Wow.. awesome but what about data class in Kotlin. If you get time, please reply..

  • @chadblair5974
    @chadblair5974 Před 2 lety

    Well done. This is exactly what I was looking for.

  • @aikisustin3094
    @aikisustin3094 Před rokem

    good tutorial, I just would like if you had used dark theme intellij

  • @viniciusps01
    @viniciusps01 Před 2 lety

    Thank you for the video. It was a nice Kotlin main features compilation.

  • @brucehe9517
    @brucehe9517 Před rokem

    Nice tutorial. Thanks, alot.

  • @siddhartarya6963
    @siddhartarya6963 Před 4 lety +2

    you could have make text bigger i can't see the text clear

  • @hiteshbitscs
    @hiteshbitscs Před rokem +1

    Nice class.. just increase a font bit

  • @bubblyboom1
    @bubblyboom1 Před 2 lety

    Great video ! you make it easier to follow then other video

  • @cocko1425
    @cocko1425 Před 3 lety +1

    Very helpful video, thanks a lot!

  • @danny117hd
    @danny117hd Před 3 lety +2

    Screens too small zoom in or 30pt font. This is a presentation.

  • @OnlinePseudonym
    @OnlinePseudonym Před 2 lety +1

    2 mins in and it's hard to read the code given the size of the font.

  • @berserk989_
    @berserk989_ Před 5 lety

    Thanks so much!!! It's very interesting so I'll keep on investigating.

  • @AbuSous2000PR
    @AbuSous2000PR Před 3 lety

    Perfecto...do u have a video that's is more advanced? This one is an introduction
    Btw...you explain very well
    Cheers

  • @IsaacCallison
    @IsaacCallison Před 4 lety

    Super helpful. Needed a refresher.

  • @chancleta4059
    @chancleta4059 Před 2 lety

    Thank you for the great tutorial!

  • @srukshan98
    @srukshan98 Před 5 lety +4

    understanding the difference between colon and semicolon is crucial

  • @daniyara8879
    @daniyara8879 Před 3 lety

    Thanks for a great and thorough tutorial!

  • @PankajKumar-ft7lc
    @PankajKumar-ft7lc Před 4 lety +2

    Finally! We got chicken. 😀

  • @karmeshduggar6694
    @karmeshduggar6694 Před rokem

    Thanks sir!

  • @asaywitz
    @asaywitz Před 2 lety

    Thank you! Nice job :)

  • @arcadudu
    @arcadudu Před 3 lety

    Very nice tutorial, but only possible to watch at 1.5x speed

  • @KotlinTv
    @KotlinTv Před 4 lety

    I loved it bro! keep it up!

  • @Nockoutz1
    @Nockoutz1 Před 2 lety

    Thank you very much , very helpful

  • @anandhu5082
    @anandhu5082 Před 3 lety +1

    great video, please add timestamps

  • @subramanianchenniappan4059

    very bright screen display and very little fonts size

  • @mohamedAhmed-xh6ic
    @mohamedAhmed-xh6ic Před 2 lety

    thanks

  • @niklasflink6092
    @niklasflink6092 Před 4 lety

    Loved it, great video

  • @MrVipulLal
    @MrVipulLal Před 3 lety +2

    Choose a larger font man!

  • @llothar68
    @llothar68 Před 3 lety +2

    Downvoted because this is Kotlin for Programming Beginners, not for Java Developers. We want a much faster and the big design points first.

  • @AzeamDildar
    @AzeamDildar Před 4 lety

    Where can we find the exercise for the practice plz?

  • @user-cm4ce5fh4q
    @user-cm4ce5fh4q Před rokem

    Danke

  • @engineerkamran
    @engineerkamran Před 3 lety

    I watched on 2x speed but the guy is good

  • @gabrielmaga970
    @gabrielmaga970 Před 8 měsíci

    thx🖐

  • @marianpazdzioch5437
    @marianpazdzioch5437 Před 4 lety +14

    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

    • @trampflips101
      @trampflips101 Před 4 lety +2

      this is probably the only good comment in the entire comment section haha

    • @aric7726
      @aric7726 Před 4 lety +1

      Totally agree

  • @Rompack
    @Rompack Před 3 lety

    Great vid

  • @francis10203
    @francis10203 Před rokem +1

    Perfect at x2 speed.

  • @ArchonLicht
    @ArchonLicht Před rokem +1

    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.

  • @drpm47
    @drpm47 Před 4 lety

    very useful.

  • @gianluke
    @gianluke Před 3 lety +1

    Useless because of the font size.

  • @srukshan98
    @srukshan98 Před 5 lety +4

    Cannot even read the code at 480p.

  • @vasilhristov5244
    @vasilhristov5244 Před 3 lety

    10/10

  • @fiddle0146
    @fiddle0146 Před 3 lety

    I don't understand why he doesn't need an argument for the when ( 36:45 )

  • @davidholle6569
    @davidholle6569 Před 4 lety +1

    "a val variable is immutable" doest't that make it a constant, not a variable

    • @pratheekadi5965
      @pratheekadi5965 Před 4 lety +6

      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.

  • @ajagbetomtoy7298
    @ajagbetomtoy7298 Před 4 lety

    can i learn android development without know java at all

    • @h3w45
      @h3w45 Před 4 lety

      of course you can.

    • @marianpazdzioch5437
      @marianpazdzioch5437 Před 4 lety +1

      but you will not understand most of Android legacy code which is .... like 100% percent :P

  • @ajagbetomtoy7298
    @ajagbetomtoy7298 Před 4 lety

    what about if the person understand JavaScript

  • @waitingyeung2546
    @waitingyeung2546 Před 2 lety

    17:55

  • @foorlooploop7736
    @foorlooploop7736 Před 2 lety

    It is good for beginners but not for java developers!

  • @emilhuseynli
    @emilhuseynli Před 2 lety

    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.

  • @noctali8049
    @noctali8049 Před 5 lety +1

    Wow Obama is teaching me Kotlin :D

  • @tav1119
    @tav1119 Před 3 lety

    Its a little bit like Typescript ...

  • @borazan
    @borazan Před 6 měsíci

    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.

  • @Golden2Talon
    @Golden2Talon Před rokem

    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 ........

    • @whistler_
      @whistler_ Před rokem

      The software part might be different, but everything regarding code (which is the important part anyways) is the same.

  • @iyxan2340
    @iyxan2340 Před 3 lety

    too slow :(

  • @Alex-sc2rc
    @Alex-sc2rc Před 4 lety

    Did anyone count the 'ah's and 'uhm's?

  • @siux94
    @siux94 Před rokem

    Waste of time

  • @sunclaude
    @sunclaude Před 4 lety +1

    Kotlin: A bull shitty Typescript with some Javascript flavours and C# extensions.

  • @firstevidentenigma
    @firstevidentenigma Před 3 lety +1

    oh my god, it is a dumbed down scripting language.