News for hackers. Stuff that matters.
Re:Ask HN: Which React framework for a new project? by jstx1 on Monday April 10, 2023 @02:39PM (#35515744)
(not a front end developer, I’m just passing by and trying to understand)

What do these frameworks do? Isn’t React itself a framework? Why do your frameworks have frameworks of their own???

Re:Ask HN: Which React framework for a new project? by calculated on Monday April 10, 2023 @04:09PM (#35516827)
So generally no, React is a JavaScript library not a framework. And in the JS world frameworks on top of frameworks is common.
Re:Ask HN: Which React framework for a new project? by jytechdevops on Monday April 10, 2023 @06:54PM (#35518376)
thanks for asking this, I'm too embarrassed to ask it myself but had the same thoughts.
Re:Ask HN: Which React framework for a new project? by hoofhearted on Monday April 10, 2023 @07:53PM (#35518888)
React is a JavaScript component library. That means single components from a React code base can be exported and reused in other projects.

JavaScript frameworks like Create React App, Next.js, Angular.js do not work like that. They completely compile the code base and inject the said components from above into an html page.

The biggest difference between a component library and a framework is that a framework requires 100% adoption, whereas a library doesn’t.

Re:Ask HN: Which React framework for a new project? by ilt on Tuesday April 11, 2023 @01:12AM (#35521111)
So, multiple component libraries can be used inside one framework like Next.js?
Re:Ask HN: Which React framework for a new project? by hoofhearted on Tuesday April 11, 2023 @06:13AM (#35523027)
Yes, if you wanted.
Re:Ask HN: Which React framework for a new project? by austin-cheney on Tuesday April 11, 2023 @01:38PM (#35528428)
tldr; Hiring.

Going back 20-25 years ago there was web design and back end development. Web design was considered a non-programming visually creative field. That required less work experience to achieve competence and thus was an excuse to pay those people half or less than the programmers. That immediately creates a bias that those people worth less and thus are less worthy of investment. That bias persists even though it was hardly qualified at the time and certainly out-dated now, but it goes to scrutiny of candidate selection/preparation.

Also, back in the day the hot languages were Java and later C#. Both of those were at the time essentially a garbage collected C++ with less overhead. That is what employers were looking for in programming candidates, and so that is what universities delivered. Most programmers come from university CS programs. This is true even today.

None of that prepares people to write JavaScript. Trying to shoe-horn a bunch of unnecessary OOP nonsense into JavaScript is like stabbing yourself in the face, so its nice if there is some tool to fill that gap.

Furthermore, many programmers cannot architect a new original application on their own. There is greater demand for bodies to type code than there exists people of sufficient intelligence and capabilities to fill those requirements. Frameworks are boxed architectures. Its not that everybody who uses or favors a framework is negligently incompetent, but for some people this is absolutely true and then there are people who build their entire careers upon that tool.

As a comparison a carpenter is not a screwdriver user. A carpenter is expected to deliver a product. A framework is a tool, like a screwdriver, but tool users are easier to select than craftsmen.