Is it prudent to use Scala for anything new?
1–10 of 11 posts
Re: Is it prudent to use Scala for anything new?
#2It 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.
Re: Is it prudent to use Scala for anything new?
#3Unless you already have a team with expertise in Scala, I don't seen the point.
Re: Is it prudent to use Scala for anything new?
#4Re: Is it prudent to use Scala for anything new?
#5Avoid it, Java is pretty OK I'd say.
Re: Is it prudent to use Scala for anything new?
#6Don’t use it in real world applications please, while having some nice syntax improvements over java, it is a nightmare on many other levels
Re: Is it prudent to use Scala for anything new?
#7Re: Is it prudent to use Scala for anything new?
#8You can express yourself in much less code and safer.
I do use it profesionaly for past maybe 8 years, mostly backend services.
Anyway kotlin is probably also better than java.
Re: Is it prudent to use Scala for anything new?
#9Personally 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…