3 ms·
I've always had better luck restricting FP to using things like map, reduce, filter, (etc) inside methods as an implementation detail, but having the structure
by _sdegutis 9y ago
I've always had better luck restricting FP to using things like map, reduce, filter, (etc) inside methods as an implementation detail, but having the structure of the app use OOP.
- scruple 9y agoThis is where I've landed when writing Ruby code, as well, and it's served me really well.
- pjmlp 9y agoIncidently that is how FP in done in Smalltalk as well. All those methods, and reactive patterns (Observer and such) were already present in Smalltalk-80.
- mercer 9y agoElixir, I suppose, would be a 'modern' example too.