| Guide |
There is a big difference between JavaScript and other programming languages, and it is not like a simple language, but rather a group of people from many dialects. Since the advent of Coffeescript in 2009, a large number of JavaScript-based languages have emerged in recent years, or dialects, such as ES6, TypeScript, ELM, and so on. They all have their own advantages and can be perfectly compiled into standard JavaScript. |
So, in the context of last week's front-end framework, today's dialect of JavaScript, look at how we choose the dialect of JavaScript. [Success] Statement: The following part of the conclusion comes from part of the data, which is the best way to find out when I want to show the full data, which makes it easier for me to share some of my ideas. Note: If you are not yet involved in this survey, join now and take 10 minutes to complete the survey and then come back to read the article. [/success]
Cognitive degree
First of all, I would like to see if the participants in the survey are aware of the following six languages:
- The classic javascript:97%
- es6:98%
- coffeescript:99%
- typescript:98%
- elm:66%
- clojurescript:77%
You might think that 100% of people should know "classic JavaScript" and I think someone can't resist the temptation to "I've never heard of JavaScript" in a JavaScript survey. Almost everyone knows the three languages of ES6, Coffeescript and TypeScript, and I am surprised that TypeScript is slightly behind ES6 and Coffeescript. On the other hand, ELM and Clojurescript score much lower, of course, it makes sense, because they are tied to their own ecological environment is relatively close, it is difficult to use in existing apps.
Degree of Interest
Next, let's take a look at what dialect attracts new developers more: Note that the table is a statistic of the language's appeal to users who have never used them, because few people have used classic JavaScript, so the "classic JavaScript" column has a low value. The value of ES6 is interesting: a large percentage of users are using ES6, and most of those who have not used it (89%) also want to learn it. TypeScript and ELM are in the same state: Not many people have been used, but the proportion of interest is good, 53% and 58%, respectively. If I were to make a prediction, I think TypeScript and ELM would have a hard time telling the normal JavaScript developers about their advantages. After all, if developers only understand JavaScript, it's hard to explain the benefits of static typing. In addition, only a few developers have used Coffeescript, and it is clear that almost no one wants to learn. I think I should write a 12-volume coffeescript encyclopedia ...
Satisfaction Degree
Now is the time for the most important question: how many developers have used these languages, and how many people want to continue to use these dialects? While classic JavaScript has the most user volume, ES6 is the big winner in terms of satisfaction, and I think it's safe to say that ES6 can be used as the default language for developing JavaScript apps. TypeScript and ELM have similar high level of satisfaction, both up and down in 85%. Then, only poor 17% of developers will consider continuing to use Coffeescript.
Happy degree
Last question, I asked you if you were happy with the way you write JavaScript in the present manner: the answer to this question is to match the satisfaction of the previous question: an average score of 3.96 points (1-5 points), and everyone is really happy when they use JavaScript. But it's hard to say that high scores are the result of some recent improvements in JavaScript, or that JavaScript may (just probably) not be as annoying as everyone thinks. In short, JavaScript is satisfying.
Summary
If the last winner was React and Vue, the title of the poll was ES6 without controversy. ES6 and bring about no epoch-taking changes, but the entire community still recognizes the current JavaScript evolution direction. I think it would be interesting for us to do that again after a year. At the same time can also pay attention to TypeScript, ELM and Clojurescript have continued to progress. Personally, the current JavaScript family is only a beginning, perhaps a few years later JavaScript will become very different.
Originally from: https://linux.cn/article-7760-1.html
Free to provide the latest Linux technology tutorials Books, for open-source technology enthusiasts to do more and better: http://www.linuxprobe.com/
JavaScript Status: Dialect articles