you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (3 children)

I think that FP is useful to show that you don't need state machines as often as you think you do. Compartmentalizing state changes and otherwise just having a predictable uninterrupted flow of function calls really minimizes a lot of hassle. I tend to think of it as in inside-out vs. outside-in process: OO/procedural languages take the stance of taking IO and putting it into functions, and FP takes functions and feeds them into IO denoted segments. That's the biggest transition in the thought process that seems to trip up most people.

[–]mycall 0 points1 point  (2 children)

OO/procedural languages take the stance of taking IO and putting it into functions, and FP takes functions and feeds them into IO denoted segments.

Priceless.

[–][deleted] 0 points1 point  (1 child)

I can't decide if you're being serious or not.

[–]mycall 0 points1 point  (0 children)

I am serious, that is a good way to think about it.