3 ms·
I tend to avoid writing Scala code with lots of OOP patterns, because it really adds complexity for things you don't need to. The "Functional Way" wins every ti
by Fiahil 11y ago
I tend to avoid writing Scala code with lots of OOP patterns, because it really adds complexity for things you don't need to. The "Functional Way" wins every time in terms of readability and simplicity, when you are accustomed to this logic.
I would say, you can try at the beginning if it's easier for you to translate from OOP language with OOP concepts to FP, but eventually you'll end avoiding that.
If you are looking for a way to organize your code, I'll suggest to experiment with OCaml modules. I found them very clean.