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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Why Learn Functional Programming

3 点作者 mraza007将近 5 年前
What are some reasons to learn functional programming. I have tried learning it but it gets complicated understand few concepts.

2 条评论

lalo2302将近 5 年前
Why I think FP is getting popular:<p>* It&#x27;s old as hell which means is battle proven * Before it was hard to understand since everything pointed to look at it with a &quot;mathematical view&quot; which not every developer has. Now there are more tutorials and &quot;Blog posts&quot; * New technologies emerged which follow the pattern with familiar syntax and great tooling.<p>Right now why should you? I&#x27;d say why not? If you already know OOP, FP can give you more ways on think about problems and solutions. Plus, it can give you a competitive advantage over other developers.<p>It is definitely not a hammer which can nail down everything, but it&#x27;s a good tool to have around.
CLPadvocate将近 5 年前
actually, this IS the point of learning FP. it&#x27;s a different way of thinking about programming and it offers you a new way (often a more elegant) of doing things.<p>it&#x27;s usually worth the effort. writing code in a functional way (even without a functional programming language) simplifies testing, often improves program stability and robustness. the more side-effect-free or pure blocks you have in your code, the easier you can build a composable or a concurrent program. basically, most of the principles of good software development (SOLID, DRY, KISS, ...) are native to FP.
评论 #23896451 未加载