u/julien-rfin r/scala • Recommends
On “Any talks/videos about the best of both worlds (OOP & Func) in Scala?”
I’m not aware of a single talk that explains how to take advantage of both OOP and FP in Scala. I’ve mostly seen talks about how to take advantage of FP, and talks about how to take advantage of OOP. Maybe your thread will inspire a new talk!
In my opinion, OOP is especially helpful to achieve encapsulation, and FP is especially helpful to model business domains and to implement business logic. I think both use cases are mostly orthogonal, and there is little chance to \_not\_ benefit from the best of both worlds. The only thing that would not be helpful would be to try to translate Spring “beans” in Scala (ie, to model business domains with mutable data types).
Although we see a lot of ta…