TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Why hasn't functional programming taken over yet?

37 pointsby 56kabout 9 years ago

10 comments

coldteaabout 9 years ago
&gt;<i>Stateless programs; No side effects</i><p>Which is not all it&#x27;s touted up to be.<p>&gt;<i>Concurrency; Plays extremely nice with the rising multi-core technology</i><p>Nice, but not that nice. Don&#x27;t expect any significant speedup for the most common kinds of programs.<p>&gt;<i>Programs are usually shorter and in some cases easier to read</i><p>For some people they are harder to read. As for shorter, Python can be pretty terse too, as can lots of other languages.<p>&gt;<i>Productivity goes up (example: Erlang)</i><p>Anecdotal. In the real world, most systems in production (including at NASA and the most critical environments) are made with imperative&#x2F;oo&#x2F;etc programming, which must count for something. For every WhatsApp there are 10,000 stories of such programs.<p>&gt;<i>Imperative programming is a very old paradigm (as far as I know)</i><p>Functional programming is 5+ decades old too. And parts of math are even older, but we&#x27;re still keeping them...<p>&gt;<i>and possibly not suitable for the 21st century</i><p>Citation needed.
评论 #11190191 未加载
评论 #11190643 未加载
javajoshabout 9 years ago
I&#x27;ve noticed that programmers tend to become more interested in functional programming over the duration of their careers. I think this is because, as a paradigm, FP solves problems that only experienced programmers realize they have. I&#x27;m not sure what the age distribution of working programmers is, but I bet the median is in the low 30&#x27;s at this point, which is when you start being interested in FP in a real way.<p>The other side of the coin is that there is tremendous &quot;practical momentum&quot; in software that is collected in the mass of code written in non-FP ways. Experienced programmers are usually expected to fix the symptoms, not cure the disease. Clever people might slip in some functional ideas here and there, but you&#x27;re almost always better off learning the nuts-and-bolts of integrating Lucene with your Jetty app than you are learning Clojure.
评论 #11189583 未加载
评论 #11189983 未加载
评论 #11189390 未加载
sotojuanabout 9 years ago
Not &quot;taken over&quot; but in many ways functional programming techniques have gotten big in front-end land, not only with JavaScript but also &quot;real&quot; functional languages like Elm or ClojureScript.
评论 #11189364 未加载
评论 #11189265 未加载
panicabout 9 years ago
It has! Almost all major languages today let you pass functions (and closures with captured bindings) as values.
评论 #11189242 未加载
DrScumpabout 9 years ago
Why does this point to the Wayback archive of the page instead of the native page?<p><a href="http:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;2835801&#x2F;why-hasnt-functional-programming-taken-over-yet&#x2F;2835936" rel="nofollow">http:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;2835801&#x2F;why-hasnt-functio...</a>
评论 #11189952 未加载
a3nabout 9 years ago
Possibly because the way we learn math, and the math that most of us learn, is taught procedurally. It&#x27;s the mindset that many of us grow up with.<p>I&#x27;m not in the valley, and I can&#x27;t recall ever seeing an ad for functional anything, not even Erlang. I&#x27;m sure there&#x27;s some around, around here, but not enough that I&#x27;ll see it when I&#x27;m casually looking.
pacalaabout 9 years ago
Between Excel and SQL, I&#x27;d say collection-oriented programming has pretty much taken over the world.
评论 #11189514 未加载
xyzzy4about 9 years ago
Because it doesn&#x27;t have enough advantages to justify the added complexity.
评论 #11189271 未加载
评论 #11189490 未加载
zelcon5about 9 years ago
Because programming is primarily a business and it&#x27;s cheaper to hire dumb programmers for whom functional programming is too difficult.
jonsmitabout 9 years ago
Because most people are not smart.<p>And because customers will pay more for software with bugs in it.
评论 #11189322 未加载
评论 #11189388 未加载