Looking back, I now realize OOP added a complexity that was not necessary. I found I could perform the same tasks without having a mutable state.
How I rediscovered my love for JavaScript after throwing 90% of it in the trash.
Joel Thoms
3.3K69

Just to clarify, OOP is not about mutable state. We can definitely having immutable state in OOP. Similarly we can also alter the state in JS. This is more about progrmming mindset, not a language or architecture problem.

But yes, immutable state is better

Show your support

Clapping shows how much you appreciated Le Truong Quoc Thang’s story.