Live data from Hacker News

State of JavaScript 2021

2021.stateofjs.com

41–50 of 245 posts

Re: State of JavaScript 2021

#41
Could there be a conflict of interest with the pick of the year?

> Lee Robinson, Director of Developer Relations at Vercel

> SvelteKit is a fresh take on building for the web and has an incredibly passionate, growing community of supporters.

Re: State of JavaScript 2021

#42
post #12

The satisfaction vs usage of angular is astonishing, but I wonder how much of that usage is legacy angular? One way to read the graph would be that there's a lot of angular just quietly getting on with the job and it's a solid choice, but another would be that there's a large amount of legacy angular out there that people aren't very happy with.

I think it's both; it's a solid and stable framework, but people are bored with it because once the technical hurdles have been crossed, front-end software development is just a cycle of building and rebuilding new screens and forms ad infinitum, and a lot of developers get bored with that.

Re: State of JavaScript 2021

#44
post #14
post #7

Interested in the steady drop in satisfaction with Vue since 2018. I remember being positively impressed when I looked into it. Is it simply due to more usage in actual systems causing people to dislike tools they really work with, or is the framework developing in a direction people are unhappy with?

Vue.js is heavily magic and doesn't support basic React concepts like render props. How is that possibly a popular framework? Like any "easy" library, you'll run into hard situations with no solutions.

What do you mean?

Vue has slots which is similar to render props.

https://vuejs.org/guide/components/slots.html#scoped-slots

Re: State of JavaScript 2021

#45
post #22

I read this report every year. This year it feels the most like it's driven by hype (and marketing, hi Vercel!). In my professional and personal experience, react has never been better to use (in terms of features, DX, maturity, community, productivity), yet if you look at the "popularity" (oh dear) graph, it's basically just describing how older tech slides down while newer shiny tech comes in and is instantly the m…

Keep in mind that the whole point of this survey is to ask developers what they really think of the tools that are currently getting the most “hype”.

Re: State of JavaScript 2021

#46

Earlier quoted context omitted.

People inheriting old react codebases now have to deal with way more complexity. For example, everyone was using styled components 2-3 years ago and now they are moving away. The complexity styled components introduced has to be managed alongside the current trend (tailwind?). Old styled components codebase looks horrible. They end up with Java inheritance hell. You create a button, then create another button inherit…

There's also a lot of great improvements in tooling that just completely outclass what CRA does. Webpack is a dinosaur that is slow and painful to use compared to new stuff like vite that is blazing fast and isn't written in JavaScript. Nextjs comes with a lot of routing decisions already made so it becomes much easier to quickly build apps on top of it

That stuff is only blazing fast because it only targets greenfield projects and has no upgrade path for older projects with complex configurations (scratch "complex", any configurations).

We've yet to see how it will fate in 3-5 years.

Re: State of JavaScript 2021

#47
post #3

Not surprised to see satisfaction drop with increase in usage for React. People feeling like they’re forced to use something because of external constraints (coworkers choices etc) are rarely satisfied with that choice. That’s the fate of any tool that becomes popular enough.

People inheriting old react codebases now have to deal with way more complexity. For example, everyone was using styled components 2-3 years ago and now they are moving away. The complexity styled components introduced has to be managed alongside the current trend (tailwind?). Old styled components codebase looks horrible. They end up with Java inheritance hell. You create a button, then create another button inherit…

I'm working on a codebase that evolved at the same pace as React, but without any thought for idiomatic principals. As a result, you have class-based components, purely functional components, hook based components, HOCs, Redux state passed in through the older functional way, Redux state passed in through an HOC, styled components, traditional CSS styled components, and anything else you can think of that was in vogue at some point. It's a mediocre code base that generally works as advertised, but the performance is trash due to misuse of styled components, and the state management is a nightmare to traverse. I think this is the reality of a lot of 3 - 5 year old React frontends, and it has definitely soured my opinion on React / Redux a bit. I'm not sure if this effects other frontend frameworks as much, but it does seem like React was always pushing for a "new way to do things" every year.

Re: State of JavaScript 2021

#49
post #12

The satisfaction vs usage of angular is astonishing, but I wonder how much of that usage is legacy angular? One way to read the graph would be that there's a lot of angular just quietly getting on with the job and it's a solid choice, but another would be that there's a large amount of legacy angular out there that people aren't very happy with.

We use angular and are ok with it. There are tons of pros & cons for and against using angular. The biggest pro it being a very nice fully typesafe template engine.

Re: State of JavaScript 2021

#50
post #22

I read this report every year. This year it feels the most like it's driven by hype (and marketing, hi Vercel!). In my professional and personal experience, react has never been better to use (in terms of features, DX, maturity, community, productivity), yet if you look at the "popularity" (oh dear) graph, it's basically just describing how older tech slides down while newer shiny tech comes in and is instantly the m…

“Satisfaction” basically means “hype”. That’s why solid and svelte are lower in “usage” rankings while Angular is second in usage.

Only Vite has great satisfaction (98%) and decent usage (30%).

Post reply on HN