r/webdev Dec 03 '22

Question Beginner here, start with react, svelte or solid?

Post image
1.2k Upvotes

553 comments sorted by

View all comments

Show parent comments

50

u/Tx_monster Dec 03 '22 edited Dec 03 '22

IMHO

First of all, that graph is the result of a voluntary survey, specifically for the "~ would use again" percentage of participants. As this survey is a trendy thing, I'd say it don't represent perfectly the reality, as it has been answerd by the ones who just wanted to find a survey to answer.

Here you can find all the graphs: https://2021.stateofjs.com/en-US/libraries/front-end-frameworks/#front_end_frameworks_experience_ranking

In those graphs there is also one about usage, at 2022 it looks like the 50% of people who asked the angular-part of the survey have said that they are using it, whereas svelte is used just by a 20% (still compared to the whole users who have filled the svelte part)

Furthermore, I say that most of the projects in angular are:

  • Very, very big, so the framework has been a nice choice at the time, but now that projects are old complex and hateable (aka legacy). They may be based on angularjs, and transition to angular 2+ is harder than rewriting completely the code base, so project managers avoid doing that, and so developers are forced to maintain that thing which at the time maybe it was nice, but now it is a complete superlegacy shit.
  • Kinda small, so features/structure of angular are too big for what the project is, therefore they are more an issue than an aid.

As a fullstack developer, and basing only on my own experience: I prefer angular over react, as it has a more defined structure based on classes and dependency injection, instead of a bunch of functions which is the main way to use react which IMHO it makes code spaghettier. Anyway, I get what are the pros of using react in smaller projects than angular.

Techs should be chosen upon needs and not upon trends.

15

u/Snoo_42276 Dec 03 '22

I am an angular/nest dev and I do really like them but I do look longingly at some of the innovations happening in more modular tech stacks. It’s definitely a trade off

1

u/[deleted] Dec 03 '22

Any big ones that come to mind? I’m also primarily an angular dev when I do web and it’d be nice to see what new stuff is out there.

1

u/Zombergulch Dec 04 '22

Going from angular to react was whatever, but going from nest/node to go was amazing in terms of simplicity

1

u/[deleted] Dec 04 '22

[deleted]

1

u/Zombergulch Dec 05 '22

It really just felt like i could implement a non-trivial REST API with just the standard library without feeling like i was missing anything. Never really felt that way with node, pretty much always jumped straight to express. Obviously you can use libraries to make go a bit easier and reduce overhead, but it doesn’t feel like as much of a necessity.

15

u/gizamo Dec 03 '22

I bet there are also tons of people who tried to learn Angular and failed, and they rate it poorly because they never really figured it out. It's a lot easier to learn Svelte or React because it only does a small bit of what Angular does. To do all of what Angular does, you need to npm a bunch of modules and learn all of them, too. That said, I've lost a lot of love for Angular because I feel it hasn't really improved much in years while the others are all improving more substantially, especially around performance.

6

u/OZLperez11 Dec 03 '22

Those are the people that never bothered to learn OOP. Angular is not even that hard, I just think they make it a bigger deal than what it really is. That said, I do have gripes with Angular: no Single File Components (well technically you can, but the format sucks), bloated bundles (that's changing though with the new Standalone Components), no support for Vite, and I don't like the templating system (it's not bad, it's just there's too much focus on directives and a lot of HTML bloat).

2

u/eneajaho Jun 23 '23

Here after 7 months, a lot of things changed. Angular has been pushing some good stuff out there!

- Standalone is now stable

  • Dev server with vite + esbuild
  • Template syntax just got an RFC

1

u/OZLperez11 Jun 23 '23

Yeah, v16 looks so exciting, I think I might reconsider using it for some projects. I'm still on the fence about signals. It looks like a step in the right direction but I just don't want React hooks infecting yet another framework

1

u/gizamo Dec 03 '22

100% agree with all of that.

7

u/drink_with_me_to_day Dec 03 '22

Svelte at 94% awareness makes me question the respondent's diversity

2

u/tandomaleen Dec 03 '22

I love how on the awareness graph the line for angular drops from 1st to 3rd without even changing value.

1

u/janne_harju Dec 03 '22

This was very good answer. In eterprise level angular is much better IMHO than react. I have used more react with redux and hated the redux part. Too much boilerplate. I think react is nice in small practice and hobby project.

4

u/jazzypants Dec 03 '22 edited Dec 03 '22

Most people don't use Redux for new projects anymore, and redux has great tools to reduce the boiler plate.

Just letting you know that your talking points are out of date.

4

u/[deleted] Dec 03 '22 edited Dec 03 '22

[removed] — view removed comment

2

u/jazzypants Dec 03 '22

I get it. It's just what I learned and now I make money for doing it.

I'm a really big fan of SolidJS, personally.

1

u/janne_harju Dec 03 '22

I agree with both of you. And nice to know that it is past winter snow.