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.

Things I learned from functional programming

5 pointsby ms123over 13 years ago

2 comments

tobiasSoftwareover 13 years ago
Okay, I have a decent amount of introductory functional programming experience. I agree with most of the article, but this sentence makes no sense to me:<p>When done correctly, recursion increase a lot readability and avoids using cumbersome control structures such as loops.<p>In my experience, recursion makes things much harder, mainly because if you have a bug, you can narrow down the location in an iterative process but a recursive process is too interconnected to do that with easily. Also readability suffers a little for mathematical people like me, and a lot for anyone else. I agree that replacing loops with map/reduce/filter increases readability, but replacing loops with recursion?
评论 #3572804 未加载
drKarlover 13 years ago
If you like OO and Functional paradigms, you should try Scala.