News for hackers. Stuff that matters.
Re:From First Principles: Why Scala? by MichaelMoser123 on Thursday February 11, 2021 @07:01PM (#26109236)
good point! on the other hand java got some functional features since java8 (lambda/streams/option chaining) that allow to have less bloated code; i think nowadays it is (at least) possible to have a less design pattern heavy code style in java.
Re:From First Principles: Why Scala? by thinkharderdev on Friday February 12, 2021 @11:29AM (#26115375)
True. Java has improved substantially since java8 (including something kinda sorta like case classes with record types in jdk15) but I still think Scala is miles better. I don't think it is generally appreciated how essential higher-minded types and typeclasses are to making functional programming tractable and safe. Perhaps because it is something that is generally hidden away in libraries and developers working on actual application code (i.e. 99% of scala devs) never use them.