• potatoguy@lemmy.eco.br
    link
    fedilink
    arrow-up
    0
    ·
    3 days ago

    Hear me out:

    Mixing OOP and functional code to abstract the shit out of everything making 5k loc in around 500 loc in java. You can do magic using this trick.

    • passepartout@feddit.orgOP
      link
      fedilink
      arrow-up
      0
      ·
      3 days ago

      Functional programming in Java is kind of an afterthought and it shows. That’s one of the reasons why Scala was created!

      • Custodian6718@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        2 days ago

        I mean Yeah it is an afterthought in the Sense of that Java was Originally an oop Language but fp in Java was added on very sensibly imo. I use functional Programming in Java a Lot and try to make Everything immutable where I can and honestly coding like that feels clean and very practical.