Hacker News new | ask | show | jobs
by mercurysmessage 1951 days ago
I don't understand why so many devs seem to want to use Functional programming.

It's the exact same thing to me as what this article is complaining about. Everyone jumping on the latest and greatest bandwagon.

Angular is easy, and OOP is very easy to work with for business needs.

2 comments

OOP is very easy to misuse where it hurts the most - on architectural level. It's very possible to write bad, unreadable FP code, but worst case isn't as bad or far reaching as with OOP.
I suppose so, I've seen that myself. I always take the time to design anything I do thoroughly though so it's all clear and concise.

Also the only time I used FP it was a seemingly awful implementation.

Perhaps I'll mess around with F# or something some time to see how I feel about it more.

In the case of React, I find functional programming excellent when it comes to mapping views from state. For state management, functional programming just seems like a massive time sink and a convoluted way of achieving the same things that OOP just gives you.
> For state management, functional programming just seems like a massive time sink and a convoluted way of achieving the same things that OOP just gives you.

Huh? function(state(A)) = state(B), always.

Right, I don't know much about React myself, but that must be why Redux was created right?