So far more than 5000 people have participated (the survey), to say the exact 5350 people. I can't wait to share with you the details of this investigation. Before sharing, I would like to thank everyone involved in the survey. This is a great time for the JavaScript community and I am thrilled with the future.
I didn't expect everyone to be so positive, and next time I would definitely make some improvements to the layout. In other words, I'm going to put the survey on GitHub first so that the community has one or more weeks to collect improvement questions and options before starting the investigation. In this way, I can get more accurate results and avoid complaints such as "I'm shocked that you didn't include Emacs."
Now, based on the results of the survey. I will remain neutral and publish the results of the survey so that you can draw your own fair conclusions.
What type of JavaScript do you write?
Up to 97.4% of respondents wrote web browser programs with JavaScript, with 37% of respondents writing mobile web programs. Over 3000 people (56.6%) Also write JavaScript on the server side. Of the respondents, 5.5% of them also use JavaScript in some embedded environments, such as Tessel or a Raspberry Pi (Raspberry Pi).
A few participants said they also used JavaScript in other places, especially in the development of CLI and desktop applications. There are also a handful of references to Pebble and Apple TV. These are classified in the other category, accounting for 2.2% of the total number of votes.
Where do you use JavaScript?
Unsurprisingly, 94.9% per cent of the participants used JavaScript at work, but there was a significant portion of the statistics (82.3% of the total number of votes). Participants are also used in other projects. Other responses include the use of teaching, fun, and non-profit purposes.
How long have you been writing JavaScript?
More than 33% of respondents said they had written JavaScript code for more than 6 years. In addition to these people, 5.2% of people started writing JavaScript code a year ago, 12.4% were two years ago, and 15.1% were three years ago. This means that of the 5,350 voters, 32.7% of them have been writing JavaScript in recent years.
What kind of compile-to-javascript (compiled to JavaScript) language do you use if you can?
Respondents with up to 85% said they used ES6 to compile ES5. At the same time, 15% of the people still use CoffeeScript
, 15.2% of the people use TypeScript
, only a mere 1.1% of people use Dart
.
This is one of the issues that I would like to explore further, since 13.8% of the people chose "other" and the majority of the answers to "othe (Other)" were ClojureScript
,, elm
Flow
, and JSX
.
Which JavaScript programming style do you prefer?
The vast majority of developers (79.9%) who answered this question chose semicolons. Instead, 11% of developers say they prefer not to use semicolons.
In terms of commas, 44.9% of developers prefer to put commas at the end of an expression, whereas 4.9% of developers prefer to write commas first.
In terms of indentation, 65.5% of developers prefer to use spaces, while 29.1% of developers prefer to use tabs (tab).
What features of ES5 have you used?
79.2% of respondents have used Array(数组)
some practical methods, and 76.3% of developers use strict mode. 30% of developers Object.create
, while those using getters and setters accounted for only 28%.
What features of ES6 have you used?
Obviously, in these polls, the arrow function is the most used ES6 feature, accounting for 79.6%. Of all the investigators, let and Const combined accounted for 77.8%. Promises is also used by 74.4% of developers. Unsurprisingly, only 4% of participants used proxies, and only 13.1% said they used symbols, while more than 30% said they were using iterators.
Did you write the test?
21.7% of developers say they never write any tests. Most people write some tests occasionally. 34.8% of people always write tests.
Do you run continuous integration testing?
Similar to CI, although many people (more than 40%) do not use CI servers, almost 60% say they use CI in a few days, and 32% of them always run the test code on the CI server.
How do you run the test code?
59% of developers prefer to run automated browser tests using PHANTOMJS or similar tools. There are also 51.3% of developers who prefer to run tests manually on a Web browser. 53.5% of voters will perform automated tests on the server side.
Which unit test library have you used?
It seems that most voters use Mocha or Jasmine to run their JavaScript test cases. and Tape received 9.8% of the vote.
Which Code Quality Inspection tool have you used?
It seems that respondents were divided between ESLint and Jshint, but JSLint still had a turnout of almost 30%, and the momentum was surprisingly strong after all these years.
How do you handle client dependencies?
NPM takes over the world of client-dependent management systems, with more than 60% of the vote proving its way. Bower still has 20% of viewers, while ordinary old-fashioned methods, managed by downloading and inserting <script>
tags, get 13.7% of the votes.
What is your preferred script-building scenario?
The choice of build tools is scattered, in part because there are too many different options to choose from. Gulp is the most popular, with more than 40% of the votes, followed by use npm run
, with 27.8%. Grunt received 18.5% of supporters.
What is your preferred JavaScript module loading tool?
For now, it seems that most developers are hovering between browserify and Webpack, which is 7% higher. 29% of users say they use Babel to convert before they use the two tools mentioned earlier to package their modules.
What libraries have you used?
In retrospect, this is one of the issues that benefit from collaborative editing. JQuery has won more than 50% of the vote to prove its momentum remains strong. Lodash and underscore are also used by a large portion of the JavaScript users who participate in voting. The xhr
mini-Library received only 8% of the votes.
What frameworks have you used?
Unsurprisingly, React and Angular are well ahead of other frameworks, with 22.8% of Backbone still in a safe position.
Do you use ES6?
Respondents were quite divided on the issue, with nearly 20% of people almost never using ES6, more than 10% of them only wrote ES6, nearly 30% of people used ES6 extensively, and nearly 40% of people used it occasionally.
Do you know what features will be in the coming ES2016?
Roughly speaking, more than half of the voters said they did not know what would happen in the upcoming ES2016. The other half is familiar with the next version.
Do you know ES6?
More than 60% of respondents seem to understand the basic concepts. 10% of people did not understand ES6, and 25% of respondents thought they knew ES6 well.
Do you think ES6 is a progress?
More than 95% of respondents think ES6 is an improvement in JavaScript, and the next time I meet a member of TC39, I congratulate them.
What text editor do you prefer?
Again, the results are very scattered because of the variety of choices that exist. More than half of the respondents like Sublime Text, more than 30% of respondents like to use atom and its open source clone version. More than 25% of the votes were cast to Webstorm, and 25% of the votes were cast to Vi/vim.
What operating system do you prefer to use as a development environment?
More than 60% of voters use Macs, and users who use Linux and Windows are close to 20%.
In what way do you search for reusable code, libraries, and tools?
Respondents seem to prefer GitHub and search engines, but some also use blogs, Twitter, and NPM websites.
Have you ever participated in JavaScript social activities?
Nearly 60% of the people attended at least once, and 74% said they liked to go to parties.
Which browsers do you support in your JavaScript app?
The answer is fairly fragmented, but fortunately most respondents say they are no longer dealing with customers who use IE6.
Do you regularly learn about the latest features of JavaScript?
80% of respondents try to understand and continuously learn the latest features of JavaScript in real time.
Where do you know the latest JavaScript features?
Unsurprisingly, the Mozilla Developer Network is a leader in JavaScript documentation and journalism. The JavaScript Weekly is also a direct source of very popular news and articles with more than 40% votes.
Have you heard of any of the following new features?
More than 85% people have heard of Serviceworker, and I wonder how many of these people have used it.
In addition to JavaScript, which languages do you use most?
There are too many languages to choose from and I'm sure I'll miss out. But the result is self-evident.
Thank you
Finally, I would like to thank everyone who participated in this survey. The popularity of the survey exceeded my expectations and I am looking forward to a similar investigation next year. I hope that it will be a more diversified, perhaps less biased, investigation.
What did you get out of this investigation?
Original link: JavaScript Developer Survey Results
Original Author: Ponyfoo
From: Nuggets translation program
Translator: Sqrthree (Root three)
Translator Blog Link: "translated" JavaScript Developer annual survey Report
Reviewer: zhangdroid
Status: Complete
"translated" JavaScript Developer annual survey Report