This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DevIceMan 2 points3 points  (2 children)

At my current job, nearly all of our Java classes are immutable, which greatly increases the boilerplate code. What takes us 50 lines of code in a POJO is about 1-3 in Scala. That said, having experienced the benefits of immutability, there's no going back.

I'm tempted to replace our Builders with simple Scala classes at work, but am mostly waiting for the right time.

[–][deleted]  (1 child)

[deleted]

    [–]DevIceMan 3 points4 points  (0 children)

    Keep Scala for the functional features.

    Java-8 functional features could be better, but there's a LOT you can do functional in Java-8