Records: Data classes in Java | Bye Lombok? | Explanation + Tutorial

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

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

  • @gustavolobos3653
    @gustavolobos3653 Год назад +2

    Hi, Mati. I liked the video. It's very clear. Could you please explain better why you avoid using Lombok?

    • @programmingwithmati
      @programmingwithmati  Год назад +1

      Hi, thanks for the comment! I will make a follow up video about what I think about Lombok

  • @dehorian_stories
    @dehorian_stories Год назад

    New sub! Nice info, thanks for sharing

  • @guilhermemelo3760
    @guilhermemelo3760 11 месяцев назад

    Very cool. Looks like Kotlin

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

    A small inaccuracy... records haven introduced in JDK 14 as preview feature and finalized in JDK 16...

  • @ronySky_
    @ronySky_ Год назад +3

    That's a good introduction to Records, but you don't really say why you think this is better than Lombok. Not only moving away from classes you lose the powers of inheritance, but without Lombok you lose builders, which are awesome if you're dealing with models with many fields.
    Not to mention records' alternative to overriding equals/hashcode when not using all fields is much more verbose than using Lombok annotations.

    • @programmingwithmati
      @programmingwithmati  Год назад

      Thanks for the comment! I’m preparing a new video on way I’ve started to avoid Lombok

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

    The learning gap between Java and kotlin is getting smaller and smaller