Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
beefdead2371y@b2plane I wanted to see purity and immutability in action.
We have some of our core services written in Scala (not the ones I work on). Additionally, Java has been marching into becoming more functional. (And java as you know, is quite pervasive) -
@b2plane Because of business reasons more than technical. Scala devs are hard to recruit for, expensive, hard to keep. And with general purpose languages like Kotlin and even Java embracing *some* functional elements, it's rare that a problem is functional enough to offset the business hassle of a niche language.
-
beefdead2371yAgreed. The learning curve was a bit much, as someone who's predominantly done procedural and OOP.
Simple functional constructs were taking too much time to write in Scala, but boy was it easy to read it. -
You don‘t need to go full functional to get the benefits of immutability.
Languages like Rust or Swift have immutability by default and special syntax to make stuff mutable. -
@Lensflare boom headshoot, scala is not entirely and purely functional tho, it can work through gradual steps. My issue with Scala is that it can bring in lots of clever code. I don't like people being clever with code, I want them being explicit
-
jaylord4511y@b2plane errr. Scala is still the main popular language to do Spark stuff in afaik.
I've written a few ETL jobs in Scala, quite proud of those because they took me an age to figure out 🙈
Related Rants
Did an intro to functional programming course in Scala.
Felt like I was able to touch the face of an immutable God. :')
random
fp
scala
functionalstyle