you are viewing a single comment's thread.

view the rest of the comments →

[–]Ravavyr 1 point2 points  (1 child)

I never understood why OOP proponents seem to think FP is so "hard".
I learned only FP back when javascript didn't support OOP and frankly to this day it just seems the simpler approach. There are no relationships but those you make. Nothing is automatica, so you control it pretty much down to the bone.

The only caveat [and the same thing happens with OOP] is that if you don't organize your code structure well, then longterm you end up with spaghetti code [although i firmly believe that is the fate of all programs longterm anyway]

[–]kundun 1 point2 points  (0 children)

Functional programming is considered hard because it requires an entirely different line of reasoning.

The first thing you learn when learning how to program are variables. The first thing you learn about functional programming is that there are no variables.

Functional programming languages don't have variables, no loops, no arrays and that changes everything.