Hacker News new | ask | show | jobs
by wg0 785 days ago
React is the Spring of frontend frameworks. If you have used Spring framework around 2010ish with Hibernate as ORM, you'd know what I am talking about.

React with its component ideas was a smart and the first of its kind, yes. But its evolution is regrettable. The idea of hooks is so.... that it would be considered spaghetti code in any other realm of software engineering.

I have switched to Svelte. I don't like everything about SvelteKit but it is better than NextJS and simpler to reason about with its page, layout load functions and error components.

With Svelte, I am rarely thinking about framework at all. I am thinking about my business domain.

EDIT: Fixed typos

Disclaimer: All opinions are subjective.

2 comments

I've been using Spring Boot since 2017 and haven't noticed any "evolution" that I would regret.

React on the other hand is insane. SolidJS is what react should've evolved in.

React is currently like Spring Framework before Spring Boot. A 'React Boot' would be welcome. Also note that Spring Boot is a small wrapper interface for Spring Framework, which adds rather than subtracts from the implementation. I've run into the limitations of Spring/Boot (mostly but not only around Hibernate) and wouldn't use it again by choice.
I see a lot of similarities in how Boot to Spring Framework is like React to Next.js or other metaframeworks.

The main difference is that Spring side is handled by the same company.

> React with its component ideas was a smart and the first of its kind, yes.

Tldr: React is just a port (the original version).

Just as an FYI, The main concepts of react were first created in PHP. It was called XHP and was latter ported to JavaScript by Facebook. This is why old React was class-based (because php is a class-based OO language).

https://web.archive.org/web/20130821190221/https://github.co...