3 ms·
Unfortunate given that my advice is sort of based on Java... When I was learning Scala, I was intimidated by a lot of the syntactic sugar that it had. It's a c
by ionforce 11y ago
Unfortunate given that my advice is sort of based on Java...
When I was learning Scala, I was intimidated by a lot of the syntactic sugar that it had. It's a calming effect to realize that all of that desugars into very simple, regular things. Java happens to be a very regular, unsurprising language.
So despite how surprising/special Scala may seem, under the hood it's just a bunch of methods.
There will be an acclimation period where you eschew the fancy stuff and stick with the Java style. But as you encounter the same structures and pain points, you will begin to see which Scala structures you like and will become comfortable with.
Find a style guide. Don't go crazy with point free. In general, it's a bad idea. (It's good if your DSL is super sexy/robust/easy to understand)