A different view on Functional Programming
matiasmorant.wordpress.com
A different view on Functional Programming
1–10 of 100 posts
Re: A different view on Functional Programming
#2> reduce(lambda b, b: ab, 1, positives)
Should be
> reduce(lambda a, b: ab, 1, positives)
Re: A different view on Functional Programming
#3Minor typo > reduce(lambda b, b: a b, 1, positives) Should be > reduce(lambda a, b: a b, 1, positives)
Re: A different view on Functional Programming
#4Logic programming is close to this. In functional programming, left side of equation always consists of dependent variable and nothing more. Logic programming allows to put any variables on both sides of equation.
Re: A different view on Functional Programming
#5Re: A different view on Functional Programming
#6is the same as
(+/ % #) &. ^.
because adverb (/ in this case) binds with + before three verbs +/ , % and # are grouped into the fork. So some parentheses aren't necessary. It would be cleaner to show three expressions which share the common part as similar in letters as well.
Re: A different view on Functional Programming
#7For them, your argument is in favor of avoiding functional languages. Too math-like! A step-by-step procedure might be simpler to understand.
Re: A different view on Functional Programming
#8I want to understand how FP replaces OOP in a similarly concise example. I have a sense that it involves a reconsideration of why OOP is useful, and solving that issue with a widely new approach, but I am not there yet myself. I’d love to see something like these Python comparisons but involving the demolition of an OOP implementation.
Re: A different view on Functional Programming
#9I get the idea (doing fp for a living for 15 years) but the article lives in a bubble populated by mathematically pure unicorns: This strength/feature of fp can only weigh in where we have the mathematical formulas, arriving at those is the hard part in most programming jobs - most of the time those who "define" the product/spec cannot even do it in plain English (because they have to make up things as they go, no cr…
Re: A different view on Functional Programming
#10I get the idea (doing fp for a living for 15 years) but the article lives in a bubble populated by mathematically pure unicorns: This strength/feature of fp can only weigh in where we have the mathematical formulas, arriving at those is the hard part in most programming jobs - most of the time those who "define" the product/spec cannot even do it in plain English (because they have to make up things as they go, no cr…