by facorreia · 11y ago · 0 comments
Not as verbose as Java -> Java is probably the most verbose compiled OOP language
Refactoring is safer than it would be in JS -> I think with the IDEs this means almost nothing.
Runs faster on Linux than C# -> I mean seriously, Java's biggest advertised feature was multi-platform support while we know that Redmond guys don't care about other platforms too much.
I feel like you are trying to justify Scala by comparing it to other languages and picking a feature or property of those languages that is the worst or almost the worst.
How about this:
- Scala has such a nice type system that it blows out OCaml from the water - Scala running faster on Linux than C++
etc.
I would expect honesty when it comes to using languages that would drive this twisted and wicked developer world to something better. If we keep using the worst languages to compare to we are not going to improve. This is what I think.
How about this:
Scala doesn't - quite - have the safety and conciseness of Haskell. But it's close.
Scala doesn't - quite - have the enterprise support and tooling infrastructure (monitoring/instrumentation, profiling, debugging, IDEs, library ecosystem) that Java does. But it's close.
Scala doesn't - quite - have the clarity of Python. But it's close.
Scala doesn't - quite - have the performance of C++. But it's close.
To summarize: Scala to me is just a better Java with too many trade offs.
If you're treating Scala as "just a better Java" then you're not writing inefficient code; you're writing code that could be better Scala code but is still better than the Java you would otherwise have written. Even if you never move beyond the "Java without semicolons" stage, hey, it saved you writing all those semicolons.
But Scala absolutely is a full language and not just a better Java; Java 8 barely scratches the surface of what you can do in Scala. I don't think I could bear to work in a language without higher-kinded types again.
Kafka has some very particular constraints that I don't think apply in general; remember they're making a framework rather than an application.
> they realized that almost all of the features are available
Interesting too. Looking at the stuff I'm currently doing, there is plenty of stuff which is just impossible in Java.
By the way, isn't "Scala has such a nice type system that it blows out OCaml from the water" already the case?
I don't doubt your sincerity.
Try to pull yourself out and understand it as an investor:
$500 a day to pay for a scala engineer. Not a word about the bottom line.
Python? Ruby? Are they algorithmically fast? No, but they ship and sell.
> $500 a day to pay for a scala engineer. Not a word about the bottom line.
Maybe - I don't make that much and I have 5 years' Scala experience. (I have a relaxed environment and great culture though, so I'm not complaining). What I really don't get is Java companies where developers are chomping at the bit to use Scala and management says no - your devs are volunteering to become devs that companies would pay 2x for, the least you can do is let them.
The last major version and the next major version don't ship with any new feature at all, and removing some stuff, so it's a bit hard to see were you are coming from.