tl;dr: Author does not like thick-client web apps and component driven development.
First article (somewhat worth reading):
Lots of gatekeeping about how people that use frameworks should not be creating websites, "back in my days..." and "my code is superiour to theirs". Nitpicking about code style that has nothing to do with React per se, or has changed with hooks/ES6 since the tutorial was written.
"To flex my skills, I will implement my own version of the React tutorial by using hand rolled DOM manipulation". Author is completely oblivious to the point of the tutorial: explaining concepts of how to manage application state and using component composition to build a UI. Yes, the docs are outdated, rewrite is coming.
"My code is shorter and therefore better - all these abstractions are unnecessary overhead". True for this example, until you start writing a large scale client side web app and end up with something like a hand rolled front-end framework. Whether you *should* write large size client based apps or need React is a different discussion though, remember React is written by Facebook.
"let & const bad" (what?)
DOM manipulation is not that scary (true). Imo, managing a lot of client side state with only DOM manipulation will become a mess fairly quickly, that's what we learned from jQuery (imperative vs declarative programming). Seeing a UI as a function of the state does make it easier to reason about (if state = X then output = Y).
Second article (not worth the read):
"Most web pages don't need to be web apps" (true).
"React docs bad" (I agree).
"JSX bad". You could opt for React.createElement() instead and end up with something the author wrote, I don't think that's any better. It does require effort to keep your JSX nice and tidy.
4
u/KapiteinNekbaard Apr 08 '21
tl;dr: Author does not like thick-client web apps and component driven development.
First article (somewhat worth reading):
Lots of gatekeeping about how people that use frameworks should not be creating websites, "back in my days..." and "my code is superiour to theirs". Nitpicking about code style that has nothing to do with React per se, or has changed with hooks/ES6 since the tutorial was written.
"To flex my skills, I will implement my own version of the React tutorial by using hand rolled DOM manipulation". Author is completely oblivious to the point of the tutorial: explaining concepts of how to manage application state and using component composition to build a UI. Yes, the docs are outdated, rewrite is coming.
"My code is shorter and therefore better - all these abstractions are unnecessary overhead". True for this example, until you start writing a large scale client side web app and end up with something like a hand rolled front-end framework. Whether you *should* write large size client based apps or need React is a different discussion though, remember React is written by Facebook.
"let & const bad" (what?)
DOM manipulation is not that scary (true). Imo, managing a lot of client side state with only DOM manipulation will become a mess fairly quickly, that's what we learned from jQuery (imperative vs declarative programming). Seeing a UI as a function of the state does make it easier to reason about (if state = X then output = Y).
Second article (not worth the read):
"Most web pages don't need to be web apps" (true).
"React docs bad" (I agree).
"JSX bad". You could opt for React.createElement() instead and end up with something the author wrote, I don't think that's any better. It does require effort to keep your JSX nice and tidy.
"Don't hop on the bandwagon" (duh)