3 ms·
Sure, making a new wheel is fine if you're never actually going to use it. But if you're actually being serious, remember that you'll have to maintain it.
by basket_horse 1y ago
Sure, making a new wheel is fine if you're never actually going to use it. But if you're actually being serious, remember that you'll have to maintain it.
- jspdown 1y agoThere's no free meal and adding a dependency is far from being free. Each dependency you add needs to be carefully reviewed, each of its update as well. Though, apparently many people just YOLO this part.
- basket_horse 1y agoI don't disagree, and it really depends on the complexity of what you are trying to do. If it's a simple util function, it makes total sense. But for complicated solutions where open source alternatives already exist, its a hard argument to spend your time reinventing it unless just for learning purposes.
- zzo38computer 1y ago> But for complicated solutions where open source alternatives already exist, its a hard argument to spend your time reinventing it unless just for learning purposes. Even if the open source alternatives already exist, does not necessarily mean that they do what you want them to do. In some cases they can be fixed to do what you need (since it is open source, that is an advantage), but sometimes it cannot really be done without rewriting it and making a new one.
- jspdown 1y agoYes exactly, each situation is different. As a team you constantly need to assess whether a dependency should be brought in or of a re-implementation is not better. Sometimes, the re-implementation is so specific to you actual problem that maintenance becomes almost free. A generic solution always open more doors to problems and require more effort to maintain. For a rich client web application, you need a really good reason not to bring an external dependency such as React.
- whstl 1y agoIf "this will be properly maintained" was the bar for dependencies, hello world React projects would have a double-digits number of dependencies instead of 1484 [1]. [1] https://news.ycombinator.com/item?id=39019001 https://news.ycombinator.com/item?id=39019001
- basket_horse 1y agocase and point, "hello world React projects" are never actually used by anyone
- whstl 1y ago168,483 weekly downloads say otherwise. Plus, most professionally programmed React apps from the last 10 years were created like this. Vite only replaced CRA as the recommended tool quite recently.
- AlienRobot 1y agoI think I got a deprecation warning for https://www.npmjs.com/package/boolean https://www.npmjs.com/package/boolean while installing React today. >3 million weekly downloads Dear God.