[FRIAM] Classes, Complexity, and Functional Programming – Kent C. Dodds – Medium
Marcus Daniels
marcus at snoutfarm.com
Fri Aug 11 12:30:39 EDT 2017
"I know, I know, functional programming is as fun as hitting your head with a brick."
It is fun!
"It is a bit scary letting go of "central control" Classes provide, very human. I mean, who's *boss*?"
The caller is the boss. With FP you know that arguments are all read-only.
This gives you unambiguous dataflow and you know when parallelism can be done because the arguments just tell you.
let c = f(a)
..can run at once with..
let d = g(a)
..but not with..
let e = h(a,c)
Also "=" here isn't assignment, it is equality.
If I have a project that isn't FP, I make it into an FP project because it is the right thing to do.
Marcus
________________________________
From: Friam <friam-bounces at redfish.com> on behalf of Owen Densmore <owen at backspaces.net>
Sent: Friday, August 11, 2017 10:19:05 AM
To: Wedtech; Complexity Coffee Group
Subject: [FRIAM] Classes, Complexity, and Functional Programming – Kent C. Dodds – Medium
I know, I know, functional programming is as fun as hitting your head with a brick.
But this article does a nice job of showing how functional programming is very Self-like:
https://me
dium.com/@kentcdodds/classes-complexity-and-functional-programming-a8dd86903747<http://dium.com/@kentcdodds/classes-complexity-and-functional-programming-a8dd86903747>
It's objects and functions all the way down, and for me the best is no `this`.
It is a bit scary letting go of "central control" Classes provide, very human. I mean, who's *boss*?
Do any of us *use* functional programming?
-- Owen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://redfish.com/pipermail/friam_redfish.com/attachments/20170811/c78a7b01/attachment.html>
More information about the Friam
mailing list