Hacker News new | ask | show | jobs
by kowdermeister 3144 days ago
Redux (and every design pattern) is something most ppl don't need, but they apply mindlessly. At least Redux abstracts the application logic into a central state and thus makes it easier to replace Angular in favor of React or Vue.

True, mindlessly applying patterns is silly, but not applying any design pattern means you will have a random software design (aka. spaghetti code) which is way worse.

Funny, I started writing a blog post about this very subject today.

2 comments

I think the common problem with people selecting poor patterns for a given context, is they don't pay attention to the context. It's more 'I got this pattern, lets use it' rather than 'I have a whole toolkit, and I can identify exactly where each one need to be used'. It's such a problem I even came up with a term to define that specific anti-pattern, 'MissingContext'.
Even as complex as my application goes ... simple local instance variable as state still works fine most of the time. In fact i find passing in callbacks works fine for most web apps i dare to say unless maybe when you're writing some sort of editors for the browsers.

I come from Object-oriented background therefore i find the Redux-way (functional programming) hideous.