5 ms·
I use Scala - it can be used or abused to do advanced OOP and advanced FP. I tend to see programming as writing. The style of writing depends very much on the
by zaptheimpaler 9y ago
I use Scala - it can be used or abused to do advanced OOP and advanced FP.
I tend to see programming as writing. The style of writing depends very much on the context and the audience.
I lean towards "basic" FP (immutability/pure functions/composition) but none of the heavy category theory concepts (anything with types that are too complex). Its mostly procedural with a hint of FP.
Most things should be functions, most higher level things (classes/packages) should be primarily ways to bundle related functions.
Prefer to maintain a clear separation between data & operations on data or structures imposed on top of it. I dislike the OOP approach of bundling data + transformations together. Also dislike inheritance because that is baking one particular structure into the definition of data.