4 ms·
Comparing the two: I have a hard time understanding how one could write FE code using classes (Stimulus) in 2023, when simple functions with inputs and outputs
by sibeliuss 3y ago
Comparing the two: I have a hard time understanding how one could write FE code using classes (Stimulus) in 2023, when simple functions with inputs and outputs are there for the taking. It's just asking for trouble and hidden complexity. Choose wisely!
- 0xblinq 3y ago> when simple functions with inputs and outputs And the state library, and the hooks for side effects, and the SSR, and the hydration, and the VDOM, and... It's not that simple.
- pulse7 3y agoFunctional/OOP flamewar is starting...
- sibeliuss 3y agoOn the FE, this is already a settled topic. Who wants to go back to `this`? Um... nobody.
- mardifoufs 3y agoI know react is moving towards SSR quite a lot but I don't think hydration or SSR are actually common for react devs to care about. You also have very similar issues with hotwire, so I'm not sure it makes React more complicated. For all its flaws, React is still extremely "small" as far as front end and server side front end goes. That might change with the increased push towards next.js and SSR though.
- sibeliuss 3y agoVery true. For every day dev, all the framework bits are stuff the average dev doesn't need to know at all. Ie, none of the devs at my company know anything about that, and that's just fine. We get a ton of work done.