News: 1645540257

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

JavaScript survey: Most use React but satisfaction low

(2022/02/22)


[1]The State of JavaScript 2021 survey has arrived, a little later than planned (no jokes about language performance, please) and in the wake of a somewhat embarrassing data leak.

[2]2020's State of JavaScript report came from a survey of 23,000 developers. 2021's was the result of just over 16,000. And although the US leads the way, its share of survey respondents dropped to 14 per cent and Russia climbed to third place behind Germany with 4 per cent.

Sadly, the vast majority (93.2 per cent) of those who answered the gender question listed themselves as male, up on last year's 91.1 per cent. 82.4 per cent chose to fill out the survey in English. JavaScript might be impressively diverse from a technological perspective, but the same cannot be said for the respondents to this survey.

[3]

However, JavaScript remains far and away the most popular language among developers, notching up nine years as the most commonly used language in the [4]Stack Overflow survey . Trends in its ecosystem are therefore highly significant.

[5]

[6]

In terms of frameworks and libraries, React continued to lead for usage followed by Angular and Vue.js. React also topped the charts for awareness, but its decline in satisfaction is marked, with the library now standing at third place as interest waned, placing React fourth behind Vue.js, Solid, and Svelte. Solid came top for satisfaction and second for interest, even if it was second from bottom in terms of people actually using it (behind Alpine.js and Ember).

[7]Worried about occasional npm malware scares? It's more common than you may think

[8]New York Times outlays seven-figure sum for 1,900 lines of JavaScript – yes, we mean Wordle

[9]JavaScript dev deliberately screws up own popular npm packages to make a point of some sort

[10]You loved running JavaScript in your web browser. Now, get ready for Python scripting

The majority of respondents believe the language was "moving in the right direction" and there was a slight decline in the proportion that felt building apps was overly complex.

As for what was missing, static typing continued to top the charts, although a majority of respondents declared themselves either "happy" or "very happy" with the general state of JavaScript and the web technologies in general. With 22 per cent of those responding to the salary question trousering $100k-$200k a year, we can't really blame them.

[11]And the data leak? An encryption key that made it possible to decrypt publicly available encrypted email addresses and link them to survey responses was accidentally left on a public GitHub repo. Oops!

Bork a table. Credit: Jon Miciew

Still, as the example pictured above of a table booking ( [12]borking ?) system demonstrates, it is all too easy for web technologies to go a bit wrong in a very public way. ®

Get our [13]Tech Resources



[1] https://2021.stateofjs.com/en-US/demographics

[2] https://www.theregister.com/2021/01/14/javascript_survey_jest_webpack_on/

[3] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/front&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=2&c=2YhUWulfpaLFFp-v8ESaX-AAAABM&t=ct%3Dns%26unitnum%3D2%26raptor%3Dcondor%26pos%3Dtop%26test%3D0

[4] https://insights.stackoverflow.com/survey/2021#most-popular-technologies-language-prof

[5] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/front&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44YhUWulfpaLFFp-v8ESaX-AAAABM&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0

[6] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/front&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33YhUWulfpaLFFp-v8ESaX-AAAABM&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0

[7] https://www.theregister.com/2022/02/03/npm_malware_report/

[8] https://www.theregister.com/2022/02/01/wordle_nyt_buyout/

[9] https://www.theregister.com/2022/01/10/npm_fakerjs_colorsjs/

[10] https://www.theregister.com/2021/11/30/python_web_wasm/

[11] https://dev.to/sachagreif/disclosing-a-state-of-javascriptstate-of-css-data-breach-2lg1

[12] https://www.theregister.com/Tag/Bork/

[13] https://whitepapers.theregister.com/



Representative?

Anonymous Coward

How was the survey disseminated? My undergraduate statistics impression is that there is some MASSIVE selection bias going on. I can't put my finger on it, but (and feeling is important when doing statistical work) I feel something's off there.

Re: Representative?

Anonymous Coward

Yup, "mostly learning from inline tools" in a survey on stackoverflow (which does contain a lot of really bad and dangerous code, but also some cool stuff). Since I don't look up stuff on SO (that often) I was not aware of the survey...

Anonymous Coward

> the vast majority (93.2 per cent) of those who answered the gender question

Yes but of those who took the survey, how many did answer?

Also see representativeness above if thinking of making inferences about the population of JavaScript users.

Joe W

https://insights.stackoverflow.com/survey/2021#section-demographics-gender

about 1.5% do not identify in the traditional binary gender definitions, 1.5% prefer not to say, 1% as "Or, in your own word" - whatever that means.

Also: vim is #4 in the loved editors - just ahead of emacs ;)

AMBxx

I read that as 1.5% clicked the wrong option. 1.5% don't want to say and 1% are taking the p1ss.

"Learning how to code"

Joe W

#1 spot: online, from videos and blogs. Hm. Yeah, lots of good scarily bad examples out there... ;)

50% have been coding for 10 years or less. I feel old now. That would have been the case for me in... the 90s. (no wonder my colleagues keep getting younger and younger - I have now a sudent coding some stuff for me, I am more than twice his age, scary).

yeah, I too tend to look up some solutions online, especially when using features/tools/libraries I have not used before - or not in a while, and most documentation for libraries is in fact online. So I guess I too fall into the "learning mostly online" group nowadays. Oh, and I grudgingly admit that the online courses offered by Microsoft are not too bad as fisrt steps. However, I also tend to attend courses when confronted with (for me) new stuff, much better to get good examples and be able to pepper a pro with questions on why and how certain things should (or cannot) be done.

Frameworks

Rich 2

I cannot think of JavaScript as anything other than a hacky abortion that is an unfortunate necessity to get some useful website functionality, but putting that aside for a moment I am amazed that the use of a “framework” for a language is so prevalent and deemed acceptable. It says a lot about the language that such a framework is considered by many to be a standard requirement. Compare this to a language such as C - no frameworks here!

As an aside, I have written some quite clever JavaScript websites - you don’t really need any “framework” at all - just a lack of lazyness and some patience.

Re: Frameworks

martinusher

I've written some things in it as well but as a programmer I dislike coding it in. It reminds me of the early days of BASIC when a useful but untidy language was stretched far beyond where it was intended to go because of the commercial need to 'get something out now'.

I think there's a hidden menace in these statistics (let's ignore their potential unreliability for now). Reading between the lines it seems that the demands of web development require armies of young people pumping out code as fast as they can. Programming cannon fodder. Most of us who've 'been there' know that the quality of the code will suffer and the current (non) performance of websites and other cloud type applications reflects this. Could it be that much of our vaunted technology industry is really a form of Ponzi scheme?

Re: Frameworks

I am the liquor

It's fine that the code quality is terrible. A couple of years into the future, the framework that it's all written on is no longer flavour of the month, and most of the hundred other dependencies that were dragged in are no longer maintained at all. What's the point of building maintainable code on top of such a house of cards? Consider it disposable from the start. Throw it away and build a new one. Building code that'll be runnable and maintainable for a decade or more is such a 1990's concept.

Ponzi scheme sounds about right.

Re: Frameworks

AMBxx

Should the JavaScript frameworks have a description other than Framework? In Java and C#, the frameworks are effectively a class library extending the language in useful ways (I've no desire to write an Array Sort).

In JavaScript, these 'frameworks' are more like layers on top to hide the ghastliness of JavaScript behind some more structured stuff. They're bordering on being new languages in their own right.

JavaScript: Just Say No.

ShadowSystems

Friends don't let friends use JavaScript.

*A loud, boisterous, feisty raspberry of snarky sarcasm*

Fastitocalon

"Sadly, the vast majority (93.2 per cent) of those who answered the gender question listed themselves as male, up on last year's 91.1 per cent." It's sadder that, according to government statistics (hse.gov.uk) in the UK: "In 2020/21, 138 (97%) of all worker fatalities were to males, a similar proportion to earlier years".

It may just be that men are generally more interested in programming than women. To spell it out, the programming disparity is being casually presented as a problem when it may not be.

I am the liquor

It is a bit of a self-fulfilling prophecy though. Finding yourself the only woman in your class or office is likely to be a discouraging situation to many.

..popular?

tiggity

"JavaScript remains far and away the most popular language among developers, notching up nine years as the most commonly used language in SO survey"

Most commonly used does not necessarily mean it's popular.

I despise JS, but unfortunately part of my work involves having to sometimes fix web sites / apps that use it.

So I'm a JS user, but an unwilling one (Burn it with fire is my approach to JS*).

A bit like when, pre COVID, I had to be in the office every day.

That meant daily train journeys... that did not mean I enjoyed the train journeys (be it the getting from A to B if lucky, the only once an hour timetable, the pocket hammering cost etc.)

But a survey of my travel would have shown train as the most used travel method (by number of journeys or by miles travelled) - so another "commonly used" but not popular scenario.

* In the unlikely event the current tensions in E Europe lead to global thermonuclear war at least I can look at the mushroom cloud and cheer myself up that its the end of JS too, so not all bad

What do we want? Static typing!

itzumee

Why not just use TypeScript then? Yes, it's a lot more than just a strongly-typed Javascript but it also gives you so much more.

Representative?

Charlie Clark

Really, who cares about the gender distribution in self-reporting studies? Like other bits of web progamming, JS development has for years been outsourced to the cheapest bidder, so the survey is largely reflecting the career opportunities and choices in those countries.

But if you want more evidence that the survey is not representative then look no further than the number of respondents who want static typing! In Javascript? As if there aren't other, bigger problems with the language. But also with TypeScript there are alternatives for those who crave the staticness.

The Seventh Edition licensing procedures are, I suppose, still in effect,
though I doubt that tapes are available from AT&T. At any rate, whatever
restrictions the license imposes still exist. These restrictions were and
are reasonable for places that just want to run the system, but don't allow
many of the things that Minix was written for, like study of the source in
classes, or by individuals not in a university or company.

I've always thought that Minix was a fine idea, and competently done.

As for the size of v7, wc -l /usr/sys/*/*.[chs] is 19271.

-- Dennis Ritchie, 1989