4 ms·
I've been using Scala primarily for a few years now after using Java since the 90's. Well written Scala code is much more pleasant to write and maintain than Ja
by jinst8gmi 11y ago
I've been using Scala primarily for a few years now after using Java since the 90's. Well written Scala code is much more pleasant to write and maintain than Java (true even for JDK 8). Scala's feature set is great, but you need to have good taste to use it effectively. It's a bit like the gang of four design patterns which some developers, especially Java developers, go looking for places to apply as many of them as possible. Rather consider where the features add value - they are very useful when used appropriately. When used sensibly Scala is amazing. You just have to keep an eye on the new guys so that they don't just use advanced features all over the place where they aren't appropriate. Fortunately that type of behaviour isn't that common but does feed the Scala is complex meme. After a few years with Scala I consider my time spent primarily with Java as lost years.
- yashap 11y agoAgreed, love Scala, and I think it can lead to super maintainable code bases, but you do have to be careful. The worst offence is probably when people start to get comfortable with implicits, and start throwing them everywhere, definitely need a good code review process to stop that. Also, the article left out probably my two favourite parts about Scala - awesome language level support for concurrency, and pattern matching. Whenever I go to languages without these features, I really miss them.