TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Why Isn't Functional Programming the Norm?

7 点作者 snikolaev超过 2 年前

1 comment

john_the_writer超过 2 年前
Because it solves nothing standard C++ style OO doesn&#x27;t, and misses out on some of the good stuff that OO does.<p>Passing a map around in FP, and modifying it as it moves is virtually identical to adjusting a member_variable. Now however you can&#x27;t protect the changes by having a setter.<p>After years in c and then c++ then rails and now elixir. I honestly don&#x27;t see that there is a benefit to functional programming. My unit tests are the same, and the code is just as buggy regardless of approach.<p>It is never the OO vs FP that make the difference.