▲ | friendzis 8 hours ago | |||||||||||||
In what way React is anywhere near well designed? Look over quick starts of React and Angular, for example. One is a well structured application, the other is a spaghetti script, all held by magic and conventions. If you recall the (in)famous "PHP: a fractal of bad design", React basically ticks every box in this rant and then some. It's not surprise knowing it's origins, but still. The reasons React has got traction are the same reasons PHP got traction or web frontend dev in general and have nothing to do with being well designed: it tries to "render" something visible, which makes early adoption much more interactive (hey, I've changed one line and now instead of 15 errors I have 25 different ones and the text moved!), however at the cost of any shot at long term maintainability. Before someone comes and tells me React is just a tool and you can make good products with any tools I encourage you to look at all the headliner star projects by Meta: if they cannot make websites in React at least somewhat functional and stable, no one can. Google headliners built with Angular, for all their warts, are at least for the most part functional. | ||||||||||||||
▲ | codethief 5 hours ago | parent | next [-] | |||||||||||||
> If you recall the (in)famous "PHP: a fractal of bad design", React basically ticks every box in this rant and then some. I dare you to walk us through that blog post and explain to us in detail how React "basically ticks every box". Not only does React not compare to PHP in the slightest, I also find this comparison rather wild because other web frameworks rank so much higher than React on the "quirks & arcane code you need to understand" scale. (I have PTSD from Angular and Vue in particular.) | ||||||||||||||
▲ | javcasas 7 hours ago | parent | prev | next [-] | |||||||||||||
Angular: Where is the code for the <foo/> component that is used here? Anywhere in the codebase, maybe defined multiple times, depending on module configuration one or another may be used. Good luck finding which one. React: Where is the code for the <Foo/> component that is used here? Either defined in the same file or imported, like any other javascript thing. But React is the crazy one. | ||||||||||||||
| ||||||||||||||
▲ | watwut 8 hours ago | parent | prev [-] | |||||||||||||
After working with both, React is massively more readable and easier to work with. | ||||||||||||||
|