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 Isn't Functional Programming the Norm?

7 pointsby snikolaevover 2 years ago

1 comment

john_the_writerover 2 years ago
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.