3 ms·
Hooks triggered my code smell detector so bad that I didn't even bother finishing the tutorial. That said, I still preferred React.createClass so I guess I'm s
by kccqzy 5y ago
Hooks triggered my code smell detector so bad that I didn't even bother finishing the tutorial.
That said, I still preferred React.createClass so I guess I'm somewhat off the beaten path when it comes to React.
- Tade0 5y agoBack when they were initially released my teammate started rewriting everything in them. Little did he know, if you're not careful with hooks, you can severely damage performance. My take is that if a feature requires a linter to be properly implemented then it's obviously giving the developer too much rope to hang themselves with. Also it appears that they were introduced mainly for performance, but for some reason sold as the new "better" way of writing applications. I actively avoid React and its ecosystem, because I believe there's just too much FOMO and "fashion"(for lack of a better word) in what drives its development and not enough meritocracy.
- brimble 5y agoRead the implementation of Hooks (in the React codebase) if you want a big LOL. They're a slower, partial re-implementation of objects with bizarre custom syntax. In a language that's already so heavily OO that the functions are objects.