6 ms·
Personally I am not a fan of Scala. There was the time I spent two days debugging something that used Scala actors to parallelize a calculation that: (1) got o
by PaulHoule 3y ago
Personally I am not a fan of Scala. There was the time I spent two days debugging something that used Scala actors to parallelize a calculation that: (1) got only a 2x speed up on an 8 core machine and (2) didn’t get the same result every time that we ran it.
It was a 20 minute job to rewrite in Java with an executor and it got (1) a 7.5x speed up and (2) the right answer.
In other cases it was human factors like the engineering manager who told me how great it was to handle errors with monads instead of exceptions except that they never actually handled the errors. This place claimed to be doing “functional programming” but they also claimed to be doing “code reviews” but if that were really the case that eng manager would have known that policies weren’t being followed (e.g. allegedly we writing unit tests but it was few and far between.)
Personally I thin Java is going in the right direction through JDK 8, JDK 17 and now JDK 21. If anything, Java is adopting “ML the good parts.” with pattern matching, sealed classes and such.
- jitsumi 3y agoIt seems that you struggled with an actor lib (edit: and with your company), not really with the language itself.