5 ms·
If you like simpler languages, you'll probably hate Scala. It's one of the most complex out there.
by nicoburns 7y ago
If you like simpler languages, you'll probably hate Scala. It's one of the most complex out there.
- AheadOfTime295 7y agoYMMV. Some features of Scala 2.x have been dropped in Scala 3 (ETA late 2020), others added. Features we know Scala 3 will have https://dotty.epfl.ch/docs/ https://dotty.epfl.ch/docs/ A comparison of features across Scala 2.x and Scala 3 is the migration guide https://github.com/scalacenter/scala-3-migration-guide https://github.com/scalacenter/scala-3-migration-guide
- jpgvm 7y agoOn the other hand you may like Kotlin. It has a lot of what makes Scala good with less of the bits that make it bad.
- switchbak 7y agoThis is down voted, but for someone wanting to learn a Scala like language, it delivers most of the capability with less complexity and tooling problems. I still prefer Scala, but found Kotlin to be enjoyable to write as well. Probably a perfect gateway into Scala if that's an eventual goal too.
- eismcc 7y agoAgree. It’s a bag of knives. Used scala for many years at Twitter and other places and There’s always a massive combination of tooling and code reviews that eventually hammer the devs into shape.
- vips7L 7y agoKotlin is probably a better route if you're considering a non-Java JVM language. Its simple, has easy access to the Java ecosystem, and avoids the complexities of the scala FP purists.
- 9q9 7y agoavoids the complexities of the scala FP purists. Are you sure? Have a look at Arrow [1] and similar! I am glad that languages offer pure FP frameworks, so I can use them if I think they are the right tool for the job, and can avoid them otherwise. It's an important software engineering choice which style of programming to use, especially with multi-paradigm languages. But the language should not enforce them! [1] https://arrow-kt.io/ https://arrow-kt.io/
- vips7L 7y agoWhile Arrow exists I don't think its representative of the community overall.
- Psyonic 7y agoNeither is cats in Scala. Most Scala programmers are probably just maintaining Play apps or using Apache Spark, with no pure FP in sight. The pure FP contingent is just very active and vocal online.
- uDontKnowMe 7y agoUnfortunately like you say the pure FP crowd are extremely vocal online and that seeps into the culture of any company that uses Scala. Most of the visible members of the community value and advocate for fp purity and 100% type-safety at any cost, and that has a large effect on who gets attracted to learn Scala in the first place, what they consider to be good or bad code, etc. The resulting culture of firms using Scala ends up being one of pure-fp aspirational, if not pure-fp outright. Anyone who denies the superiority of a pure fp approach is constantly brow-beaten for being such a simpleton. Every time you dare use something as impure as a mutable object, or a non-const reference (so var instead of val), or even want to look up an item in a collection by index (unsafe operation since it will throw exception if index >= length) you'll have to prepare for a heckling from your team mates. Anyone you might ask help from online will first look down their nose at you for even wanting to do something so despicable, and you'll have to humour them with "well yes oh great FP lords, I know that this is really really bad I know, but I have to for .... reason, please help me anyways!".
- walkingolof 7y agoThis is one of the most persistent myths about Scala, the language itself is far smaller than, for example, Java, and its standard library is very approachable.