←back to thread

873 points belter | 1 comments | | HN request time: 0.429s | source
Show context
chmod775 ◴[] No.42947644[source]
> Objects are extremely good at what they're good at. Blind devotion to functional is dumb.

Maybe "mutable objects"? Maybe these were intended to be isolated statements? Personally I believe functional programming is great with objects too...

It is however true that many OOP-embracing languages tend to favor an imperative style. Scala is an example of a language that embraces both.

replies(1): >>42949805 #
1. ikety ◴[] No.42949805[source]
C# is becoming one as well. I recommend Zoran Horvat on youtube

And most of the well written react projects I've worked on tend to be overwhelmingly functional in style. Hooks just make sense when thinking about the lifecycle of a UI. Shared state and imperative code with react just feels wrong.