Spring Boot & Kotlin: Pain or Gain? by Urs Peter @ Spring I/O 2024

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 22

  • @matthewmoore5934
    @matthewmoore5934 3 месяца назад +3

    Great video! Under the heading of "more functional" I do wish Urs had mentioned the fact that many more things are expressions in Kotlin than in Java. For example, try, if, and when among others all return a value. This eliminates the all-too-common and error prone pattern of creating a local variable initialized to null upstream of a block, and then assigning to it inside a conditionally-executed block. Instead, the if/else or try/catch itself returns a value. This contributes to concision, safety, and readability.

  • @ArtemKhodos
    @ArtemKhodos 5 месяцев назад +8

    Gain! Unfortunatelly Kotlin for backend doesn't get enough

  • @SureshG
    @SureshG 5 месяцев назад +8

    It's not correct to say there is no parallelism in virtual thread. There is virtualThreadPerTaskExecutor and structured concurrency support (which is in preview, but haven't changed much) to execute things concurrently. On JVM, you forgot about other major advantages of using virtual threads like better debugging , stack trace, profiling etc.

    • @stefumies
      @stefumies Месяц назад

      Concurrency and Parallelism are not the same thing.

  • @kokosensei5231
    @kokosensei5231 5 месяцев назад +4

    Thank you for sharing!

  • @hackneymarshes
    @hackneymarshes 3 месяца назад

    Truly excellent talk highlighting the many benefits of Kotlin. Thanks for also going into WebFlux and coroutines towards the end.

  • @bofu9662
    @bofu9662 5 месяцев назад +2

    Nice video, Happy Kotliner

  • @thilankaliyanaarachchi984
    @thilankaliyanaarachchi984 4 месяца назад

    14:57 Java records now supports derived records (JEP 468)

  • @sharifyy
    @sharifyy 5 месяцев назад +8

    15:51 using kotlin data classes as JPA entites is not a good idea.

    • @stefumies
      @stefumies Месяц назад

      Yes he mentioned that specifically.

  • @kukukudoes458
    @kukukudoes458 Месяц назад

    the only thing i absolutely hate about java is the lack of async await
    reactive programming is not nice to work with in java reactor

  • @thilankaliyanaarachchi984
    @thilankaliyanaarachchi984 4 месяца назад

    Is there any way to call suspend function from a non suspend function? Does it even make sense?

  • @reperionkim8187
    @reperionkim8187 5 месяцев назад +1

    Someone said that Kotlin is valuable just because it doesn't use semicolons.

  • @bobliu-bt1uw
    @bobliu-bt1uw 5 месяцев назад +2

    Kotlin's syntax and concepts are similar with C#, which one comes first😃

    • @SureshG
      @SureshG 5 месяцев назад +5

      Kotlin is much more ergonomic and concise. Over the period of time, C# has become a kitchen sink language.

  • @anoozg9565
    @anoozg9565 5 месяцев назад

    Null to optional 😂 good point that’s a total anti pattern for optional

  • @TheDrezir
    @TheDrezir 4 месяца назад

    I dont understand the trend to make comparison amogn these two languages. Man can make safe and readable code in java & kotlin. All features are now available in both languages, it only differs in what it is called and the usage (for example extension functions you replace with util classes or use bytecode maven plugin for support it dirrectly). This comparision sessions are only for guys liking the smell of their farts (south park if you know :D)

  • @BelarusianInUk
    @BelarusianInUk 4 месяца назад +1

    Kotlins come and go. Java stays forever 😊

    • @UzuhEkeneKelvin-j6v
      @UzuhEkeneKelvin-j6v 2 месяца назад +5

      Naaa. With the way companies are adopting Kotlin, Kotlin seems to be the future; obviously in Mobile apps , KMM and Server-side.

  • @chauchau0825
    @chauchau0825 5 месяцев назад +1

    Scala cult, Groovy cult, amd now Kotlin cult

    • @mrkostya008
      @mrkostya008 5 месяцев назад +3

      and yet Google ditched the Java cult