TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

State of JavaScript 2022

78 点作者 dfabulich超过 2 年前

11 条评论

rswerve超过 2 年前
It&#x27;s a little funny that Javascript haters and Javascript influencers meet in their desire to highlight the new and shiny toys of the front-end ecosystem, but if you actually look at the survey results (or work on the front-end) then you know that in the real world, where people are shipping to prod, the story is the <i>stability</i> of favored tools.<p>These things won: React, Webpack, Jest. They&#x27;ve been the dominant tools for years. (Typescript is getting there.) The ecosystem around them is enormous; a million edge cases have already been handled; they&#x27;re not going anywhere for a long time.<p>It&#x27;s not really a surprise that as browsers become more like operating systems, people will experiment and find new ways to leverage the available capabilities, but you don&#x27;t have to play with the new toys, and you definitely don&#x27;t have to use them for paying work. Just say &quot;risk&quot; ten times if anyone suggests them, and your PM will end up agreeing with you.
评论 #34335635 未加载
vbezhenar超过 2 年前
Here&#x27;s my feelings like someone who&#x27;s not strictly frontend developer but has to deal with it from time to time.<p>Frontend seems to be React, rest is dead, everyone&#x27;s on React.<p>Build system seems to work. Last time I used vite and didn&#x27;t tinker with it at all. It just works. That&#x27;s good. It was a royal pain for in in the past. All those grunts, webpacks, gulps and whatnot. But it doesn&#x27;t seem like dust is settled yet. I guess more build systems will appear and disappear in the future.<p>State storage: I don&#x27;t know. Redux was hot in the past. Nowadays it seems to be react-query which is supposed to be wrapper around fetch but apparently its caching is good enough to replace the whole state storage framework. Sounds weird, but here we are.<p>Routing is weird. I don&#x27;t understand what&#x27;s with it. There&#x27;s react-router but there are some fuss with latest version, with react-query compatibility.<p>Code quality tools are not complete. There&#x27;s prettier which is nice but does not work for everything as they have some weird artificial constraints, like they don&#x27;t want to insert curly braces automatically, so you need to use eslint. Configuring this stuff still is pain. Deno is awesome in that aspect.<p>What I miss in JS ecosystem is something single which solves all my problems. Like npm which can also build website, which can hot reload it for dev mode, which can autoformat my code with single blessed unconfigurable code style, which can lint it, which can run unit tests and so on. I don&#x27;t want to spend a single second setting up my environment.
评论 #34336293 未加载
评论 #34335823 未加载
评论 #34338583 未加载
评论 #34337074 未加载
评论 #34338409 未加载
评论 #34335761 未加载
dmitriid超过 2 年前
To misquote the author of Solid.js as I remember it:<p>--- start misquote ---<p>There&#x27;s no wonder react has been popular for all this time. We needed a time of relative stability and gradual evolution. We don&#x27;t need revolutions every year.<p>It gave time to think about hard problems, and come up with new solutions. There&#x27;s intensive work being done right now on things like proper partial hydration, SSR, granular reactivity etc.<p>--- end misquote ---<p>This is partly reflected in the graphs as well: react dominates, but &quot;new kids on the block&quot; like Svelte and Solid have insane rates of interest and retention.
dmitriid超过 2 年前
To keep beating the same tired old drum: despite literally hundreds of millions of dollars poured into development and promotion of Web Components... the results are at best meh. The two leading frameworks, Lit and Stencil, see very little interest, so-so retention, and barely any usage.<p>None of the major frameworks and barely any of the newcomers use them... well, for anything.<p>(Of course the person responsible for them tries to downplay it because biased etc. <a href="https:&#x2F;&#x2F;toot.cafe&#x2F;@slightlyoff&#x2F;109669688324474159" rel="nofollow">https:&#x2F;&#x2F;toot.cafe&#x2F;@slightlyoff&#x2F;109669688324474159</a> )
pcurve超过 2 年前
Mainly look at Svelte&#x27;s... its adoption more or less flatlined this past year compared to previous years :-&#x2F;<p><a href="https:&#x2F;&#x2F;2022.stateofjs.com&#x2F;en-US&#x2F;libraries&#x2F;front-end-frameworks&#x2F;" rel="nofollow">https:&#x2F;&#x2F;2022.stateofjs.com&#x2F;en-US&#x2F;libraries&#x2F;front-end-framewo...</a>
评论 #34335715 未加载
评论 #34335595 未加载
kreetx超过 2 年前
No-one uses vanilla JavaScript anymore and everyone is on TypeScript? <a href="https:&#x2F;&#x2F;2022.stateofjs.com&#x2F;en-US&#x2F;other-tools&#x2F;#javascript_flavors" rel="nofollow">https:&#x2F;&#x2F;2022.stateofjs.com&#x2F;en-US&#x2F;other-tools&#x2F;#javascript_fla...</a>
评论 #34341864 未加载
spiffytech超过 2 年前
The new comments section on the frameworks page is nice. It&#x27;s interesting to see which ones people for apathetic about and which have lots of love.
thrdbndndn超过 2 年前
I knew the field is predominantly male but only 5.2% women? Wow. I&#x27;m curious: is it worse or better in real world?<p>Edit: fix the number to use &quot;% of question respondents&quot;.
评论 #34335557 未加载
评论 #34335346 未加载
评论 #34335478 未加载
评论 #34335688 未加载
senttoschool超过 2 年前
State of JS but completely leaves out the backend Javascript&#x2F;Node&#x2F;Bun&#x2F;Deno ecosystem.
评论 #34335694 未加载
评论 #34335414 未加载
评论 #34335496 未加载
cudgy超过 2 年前
“React might not have all the answers after all”<p>Let the newest, slickest, shiniest batch of Javascript web frameworks commence! Oh boy.
评论 #34335312 未加载
评论 #34336475 未加载
评论 #34335498 未加载
k__超过 2 年前
The graphs get worse every year.
评论 #34335730 未加载
评论 #34335420 未加载
评论 #34335343 未加载
评论 #34335500 未加载