Y
Hacker News
new
|
ask
|
show
|
jobs
by
_diyu
3005 days 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.
2 comments
pjmlp
3005 days ago
Incidently 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.
link
mercer
3004 days ago
Elixir, I suppose, would be a 'modern' example too.
link
scruple
3005 days ago
This is where I've landed when writing Ruby code, as well, and it's served me really well.
link
All those methods, and reactive patterns (Observer and such) were already present in Smalltalk-80.