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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

The Problem with Functional Programming

1 点作者 lichtenberger超过 2 年前

1 comment

proc0超过 2 年前
Those are some good points, but let&#x27;s talk about OOP for a second. Isn&#x27;t it just a set of conventions with intuitive names? The principles are often not followed as is with inheritance, and the other principles are applicable to other paradigms. In contrast, FP in its strictest form (best form) is formally defined by lambda calculus and extended via category theory. I agree there is no comparison between FP and OOP, but in my opinion it&#x27;s because OOP isn&#x27;t really a paradigm but a set of conventions that &quot;lower level&quot; languages made popular by making these conventions first class.<p>I think FP is the best paradigm because it is so well defined, but the biggest problem that I&#x27;m seeing is that it&#x27;s not enterprise friendly. It&#x27;s hard to scale teams using pure FP, it&#x27;s hard for managers to intuitively grasp the concepts which decreases &quot;transparency&quot; and shifts the control to engineers (and unfortunately that is not good for most companies). If the software industry shifted to using pure FP as its main paradigm, the benefits would ripple across all layers of software. UI&#x27;s would not be so unreliable, apps would crash less and crash gracefully when it happens. Then there is the development experience where we would see unprecedented modularity and reusability, functions would be written once and the stack would grow without reinventing the wheel. But again, this doesn&#x27;t happen because it would require companies to let their engineers have much more control than the leadership roles are willing to entertain. The complexity and esoteric nature of FP would prevent non-technical people from overseeing the process.<p>Using the wizard analogy, the ivory tower is both a source of magic and inevitable isolation.