Re:How to stop functional programming
by defiblep on Tuesday February 23, 2016 @09:32AM
(#11159008)
Your first example is actually procedural. Needs more lambdas.
[ Parent
| on HN ]
Re:How to stop functional programming
by braythwayt on Tuesday February 23, 2016 @09:37AM
(#11159037)
It never lasts long enough to get complex, it appears in a virtual functional/anti-functional pair and then they annihilate each other.
Only in the presence of a powerful gravitational force, like the edge of a corporate programming style guide, will one of the pair be sucked into the maw, leaving the other to accumulate cruft.
For example, the second can incorporate two-way binding as noted, logging, synchronization via Operational Transforms, and so much more...
Re:How to stop functional programming
by BerislavLopac on Tuesday February 23, 2016 @01:18PM
(#11160992)
> Needs more lambdas.
I'll be using this in every code review from now on.