[JS] Is it even possible to actually write a real world application using functional programming?
Here is a quote I found about functional programming: "Functional code is characterised by one thing: the absence of side effects. It doesn’t rely on data outside the current function, and it doesn’t change data that exists outside the current function. Every other “functional” thing can be derived from this property".
Also, it is my understanding that one of the core principles of FP is that your functions, given a certain input, should always return the same value.
Given this, how can you write an actual real world web app using this style of programming? Wouldn't writing to a database automatically mean that your code doesn't qualify as FP? Heck, even reading from a database wouldn't be FP. Is there something I'm missing? Also, I'm all for composition and love the idea of pure function and can kind of understand the appeal of immutability, but all this and everything I read about FP also makes me think that you are pretty much forbidden from storing data in any way, shape or form. Am I understanding this right?
Submitted July 16, 2017 at 09:48PM by Neoflash_1979
via reddit http://ift.tt/2t60hol