DEV Community

Discussion on: Ask me dumb questions about functional programming

Collapse
 
jochemstoel profile image
Jochem Stoel

To me it is not just composition but also isolation.

Thread Thread
 
joelnet profile image
JavaScript Joel

There are many good things. I tried to boil it down to one for simplicity.

For me, it's also about not having the mistakes of OOP: Inheritance, State, Mutations, Combining data + functions into one Object, Access Modifiers (public, private, internal, protected), property accessors get/set. etc.

Thread Thread
 
jochemstoel profile image
Jochem Stoel

Yeah but still we need streams and emitters.

Thread Thread
 
joelnet profile image
JavaScript Joel

For sure. I use event emitters also. I usually tie those in together with RXJS.

Thread Thread
 
jochemstoel profile image
Jochem Stoel

You know, everybody is like rxjs and mocha and Jasmine and mojiscript and asynchronous curry ketchup frameworks but to me they are just collections of 'helpers' from other people that I like to write myself most of the time. Functional programming to me is closely related to context free development and that means elimiting dependencies. If functional programming really insists on being a thing then don't clean up only the language but also the rest.