Kotlin Type Classes - a Practical Pattern to Organize Your Code

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ก.ย. 2024
  • blog post: blog.rockthejv...
    Complete Kotlin course: rockthejvm.com...
    Other videos referred in this video:
    Kotlin context receivers: • Kotlin Context Receive...
    Kotlin functional error handling with Either: • Functional Error Handl...
    In this video, we'll explore type classes in Kotlin, without the heavy theory or too much functional programming. Instead, we'll expand our code example, making it increasingly maintainable, extensible, and easy to read and understand.
    Follow Rock the JVM on:
    LinkedIn: / rockthejvm
    Twitter: / rockthejvm
    Blog: Blog: blog.rockthejv...
    -------------------------------------------------------------------------
    Home: rockthejvm.com
    -------------------------------------------------------------------------

ความคิดเห็น • 15

  • @LongLiveEnduro
    @LongLiveEnduro 7 หลายเดือนก่อน +4

    Super nice, Daniel. Please keep the Kotlin content rolling. Highly appreciated here!

  • @TimSchraepen
    @TimSchraepen 7 หลายเดือนก่อน +2

    Nice overview of different kinds of Validation with increasing levels of revealing intent.

  • @willmanuelleytonlopez3189
    @willmanuelleytonlopez3189 7 หลายเดือนก่อน +2

    It's an elegant solution! I like this approach, great content.

  • @TimurAtakishiev
    @TimurAtakishiev 7 หลายเดือนก่อน +4

    Hey man, thank you very much for your videos. I wanted to ask is it going to be any tutorial of akka+kotlin?

    • @rockthejvm
      @rockthejvm  7 หลายเดือนก่อน +1

      probably not; Akka + Kotlin would be the same as Akka + Java

  • @mahyarmlk7964
    @mahyarmlk7964 7 หลายเดือนก่อน +3

    Great content 👍

  • @neyasbit
    @neyasbit 3 หลายเดือนก่อน +1

    💣 Need more!

  • @AlejandroRamos-dv8cs
    @AlejandroRamos-dv8cs 5 หลายเดือนก่อน

    I wonder how this would look like in a DDD fashion, where in changing the DTO to the domain model the domain validation is performed inside the domain, and other validations inside the application/controller layer, which is then persisted.
    I'll give it a try to rewrite my logic in this style! I think it would make it cleaner ( if I manage to lol)

  • @pixelated-loser
    @pixelated-loser 6 หลายเดือนก่อน

    rock the jvm rocks

  • @Matheus_1582
    @Matheus_1582 6 หลายเดือนก่อน

    Você já usou o Framework UDASH ele usa Scala.

  • @000TheMatheus000
    @000TheMatheus000 3 หลายเดือนก่อน

    "never use double for money"... what should we use instead?

    • @rockthejvm
      @rockthejvm  2 หลายเดือนก่อน +1

      Use specialized money types (many libraries for it)

  • @TimSchraepen
    @TimSchraepen 7 หลายเดือนก่อน

    Mentions we’ll model events, doesn’t use past tense to describe them. *triggered* 😅😅😅

    • @rockthejvm
      @rockthejvm  7 หลายเดือนก่อน +1

      Technically, as described, they're _commands_

  • @Matheus_1582
    @Matheus_1582 7 หลายเดือนก่อน +1

    @rockthejvm