Kotlin First Impressions

Поділитися
Вставка
  • Опубліковано 4 вер 2024
  • Reading and understanding modern Kotlin code.
    💬 Topics:
    - Why use Kotlin?
    - Kotlin vs. Java;
    - What are Kotlin data classes?
    - What are Kotlin function extensions;
    - Is inheritance bad?
    - What are Kotlin infix functions?
    - Kotlin functional programming;
    - Single expression functions;
    - Immutability in Kotlin;
    - Destructuring objects.
    📖 Blog Article - www.awesome.cl...
    Patreon - / awesomeclub
    #kotlin

КОМЕНТАРІ • 34

  • @capsey_
    @capsey_ 10 місяців тому +18

    Reading Kotlin is always fun (badum ts)

    • @awesome-coding
      @awesome-coding  10 місяців тому +1

      😅

    • @loek8638
      @loek8638 10 місяців тому +1

      Functional kotlin be like

    • @Bs0dKnight
      @Bs0dKnight 10 місяців тому +2

      Actually, they had to choose what to use for functions between fun and def(3 letters) and they intentionally chosed fun because it' fun 😅. Someone from jetbrains has a talk on this.

    • @loek8638
      @loek8638 10 місяців тому +2

      @@Bs0dKnight fun is def more fun than def

  • @MagicNumberArg
    @MagicNumberArg 10 місяців тому +10

    You should mention coroutines (async). This is a must-have in a modern language.

    • @awesome-coding
      @awesome-coding  10 місяців тому +7

      Thanks for mentioning this. I actually saved coroutines and async coding for a second video where I'm tackling more advanced concepts.

    • @sauravadhikari8645
      @sauravadhikari8645 10 місяців тому

      Ohh noice

  • @loek8638
    @loek8638 10 місяців тому +4

    Kotlin is very good

  • @TechBuddy_
    @TechBuddy_ 10 місяців тому +2

    If it didn't have null and errors as values I'd be a kotlin dev but kotlin is my favourite jvm languages
    Edit: btw ktor is really good

    • @awesome-coding
      @awesome-coding  10 місяців тому +2

      Same here - it's hard getting back to Java once you use Kotlin for a while.

  • @composetoast8002
    @composetoast8002 10 місяців тому

    Thank you! I find it helpful to have windows into the ergonimicity of other programming languages.

  • @yblackfrost
    @yblackfrost 10 місяців тому +8

    kinda of crazy how lua has become so popular because of neovim

    • @loek8638
      @loek8638 10 місяців тому

      And Roblox

    • @awesome-coding
      @awesome-coding  10 місяців тому +1

      @loek8638 Yep - I think Roblox is the main driver here :))

  • @pinkorcyanbutlong5651
    @pinkorcyanbutlong5651 10 місяців тому +2

    A video on Swift later? After looking at it for some time, it has a lot of similarities to Kotlin design wise, while being a compiled language first. And in recent times there is quite the ongoing work to expand it as a general language, and not just be "the mac/ios app language", with better support for other platforms, better c++ interop, and already some back-end frameworks like vapor

    • @pinkorcyanbutlong5651
      @pinkorcyanbutlong5651 10 місяців тому +1

      Also the fact that there are official Swift development tools (lsp, linter, repl) for use in third party editors, while JetBrains has the stance of "the only way of developing Kotlin is trough our IDE", you know you're being stingy when Apple is more open about third party support

    • @awesome-coding
      @awesome-coding  10 місяців тому

      This is a very good suggestion - thank you!

  • @snatvb
    @snatvb 6 місяців тому

    this is good lang, but it doesn't have lsp that really sad :(

  • @nanonkay5669
    @nanonkay5669 10 місяців тому

    My personal list of languages to learn or the "Avengers List Of Languages" right now is: JavaScript/TypeScript, Kotlin, Go, Python, Solidity. You cannot go wrong with any of these languages be it for personal projects or finding a job, imo.

    • @awesome-coding
      @awesome-coding  10 місяців тому

      Solidity is an interesting choice. Do you see a great future / wide adoption of smart contracts.

    • @nanonkay5669
      @nanonkay5669 10 місяців тому

      @@awesome-coding I think it's unrealized potential right now, but I do think it has a future. I wouldn't make it a priority to learn, though, but may come handy when mass adoption begins and you were way ahead of the curve.

  • @bebobauomy1265
    @bebobauomy1265 8 місяців тому

    Kotlin vs modern Java 21?

    • @awesome-coding
      @awesome-coding  8 місяців тому +1

      Honesty I'd still go with Kotlin because of the better developer experience.
      Kotlin has null safety built in into the language, while Java doesn't really enforce the use of Optional.
      Also, I like that Kotlin is more expressive thanks to the enhanced collection methods.
      Java is still the safe choice though, and you have better chances getting a job with it.

    • @bebobauomy1265
      @bebobauomy1265 8 місяців тому

      @@awesome-coding
      Thank you :)

  • @thecoolnewsguy
    @thecoolnewsguy 10 місяців тому

    Except it has a shitty support in vs code 🙂💔

    • @awesome-coding
      @awesome-coding  10 місяців тому

      Ah.. good point..
      I'm a long time user of IntelliJ IDEA, so I'm not feeling the pain of the lack of IDE support.

    • @thecoolnewsguy
      @thecoolnewsguy 10 місяців тому

      @@awesome-coding I'm feeling it. I'm generally not a JetBrains' IDEs' fan. I just don't like their design and vscode is just smooth and has a beautiful UI. I don't know why there's no support for vs code like literally most popular languages are well supported in vs code even java and dart but kotlin! Were they too lazy to add it or they want to force you to use JetBrains' IDEs so they can make more money?

    • @awesome-coding
      @awesome-coding  10 місяців тому +2

      @@thecoolnewsguy I don't want to push IntelliJ in any way, but just as an FYI, its latest "New UI" update is a huge step forward in UI and usability.
      Honestly, I believe they have no real interest in Kotlin devs to use anything other than their IDEs (which are very pricey in my opinion).
      Google doesn't care, because Kotlin works well in Android studio.
      The Spring / Java devs don't care, because IntelliJ is already heavily used in those communities.
      So the only devs affected are the ones coming to Kotlin from a background different from Java. I don't know how big of a chunk this group is, but my expectation is that when a critical mass will be reached in this category JetBrains will have no other option but to liberalise IDE support for Kotlin.

    • @Bs0dKnight
      @Bs0dKnight 10 місяців тому

      Of course jetbrains itself wont add kotlin support to vscode because it's competitor.
      Also kotlin is not very popular anywhere except mobile, so there is not much interest in the community to work on this support either.

    • @thecoolnewsguy
      @thecoolnewsguy 10 місяців тому

      @@Bs0dKnight the same can be said for flutter too (I know it can also be used for desktop and web but there are better alternatives for this). Google could just leave it to android studio without vs code support.