Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I disliked a lot of this article, as "there is bullshit everywhere" seems like something that should just be an axiom at this point.

However, I will expand on a specific pattern of bullshit that is common in the tech world: over-complication for the sake of some sort of "theoretical purity". I think Redux is a good example of this. I think Redux can be used well, but it became the "recommended way to do global state in React" and IMO way many more code bases have become an incomprehensible nightmare because of Redux than have been helped by it.

Similarly, and I'm probably dating myself, but anyone remember the original Enterprise Java Bean specs, and the laughably bad "Pet Store" demo app from the early 00s? It was as if you took a collection of "architects" with no real world experience, and certainly no regard for performance, and had them create the most elaborate Rube Goldberg machine possible.



Ironically, Dan and I have spent more time trying to convince people to _not_ use Redux all the time than we have trying to actually market it :( [0] [1]

We specifically have info in our docs on when it actually makes sense to use Redux [2] [3], but that doesn't change the flood of Medium blog posts out there.

I created the Redux Style Guide docs page [4] to try to give some clarification on our actual current recommended patterns and usage practices, and our Redux Toolkit package to simplify common Redux use cases [5]. Unfortunately, there's only so much we can do - a lot of people never even look at the actual docs.

[0] https://medium.com/@dan_abramov/you-might-not-need-redux-be4...

[1] https://blog.isquaredsoftware.com/2017/05/idiomatic-redux-ta...

[2] https://redux.js.org/introduction/getting-started#should-you...

[3] https://redux.js.org/faq/general#when-should-i-use-redux

[4] https://redux.js.org/style-guide/style-guide

[5] https://redux-toolkit.js.org


Just like to chime in and say I'm really appreciative of these efforts. I get devs at my firm who are learning to do web dev for the first time and ask why we're not using Redux by default. I link them to Dan's article and the Redux FAQ as part of my explanation that Redux is a life-saver when you need it and aggressive overengineering when you don't.


Thanks :) I also should have linked my post "Redux - Not Dead Yet!" [0], which talks about how Redux compares to other tools like context, useReducer, and GraphQL, when it makes sense to use those, and reasons why Redux is still useful depending on what you're actually trying to do.

[0] https://blog.isquaredsoftware.com/2018/03/redux-not-dead-yet...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: