News for hackers. Stuff that matters.
Re:Why is front-end development so unstable? (2018) by cehrlich on Monday May 30, 2022 @05:57PM (#31564069)
It’s true that there are a lot of different ways to do the same thing, but the good news is you’re doing the same thing and the difference is mostly just syntax. Someone who has used Redux extensively can get up and running with Zustand in no time, and vice versa. Likewise React Query and Apollo Client are basically the same thing.

Build tools are a bigger issue, but fortunately most front end devs don’t actually need to deal with them all that often.

Re:Why is front-end development so unstable? (2018) by msie on Monday May 30, 2022 @07:46PM (#31564807)
As if it's so easy to move from one thing to another. Yikes!
Re:Why is front-end development so unstable? (2018) by azemetre on Tuesday May 31, 2022 @09:17AM (#31569123)
Some libraries will create code mods to assist in transitions. For example I've used some MUI codemods in the past to make transitions to newer versions of the library more seamless [1].

There are also codemods to say move from underscore to lodash and vice versa (been a while and can't find them at the moment).

ASTs [2] are pretty cool in this regard. Especially if you write your code in a manner that easier to automate against.

[1] https://github.com/mui/material-ui/blob/master/packages/mui-... [2] https://en.wikipedia.org/wiki/Abstract_syntax_tree