As the year draws to a close, check up on the pulse of JS and see what’s hot in 2019 (and what will likely heat up through 2020).
All about arrow functions
97.8% of devs use arrow functions. This marks the highest usage rate of any JS feature.
With this welcomed feature, devs can write functions with a shorter, more compact function syntax. All it takes is one arrow:
SEE ALSO: Software development trends for 2020
React versus Angular
When it comes to front end frameworks and libraries, Angular and React are two of the biggest names. Last year we saw a dip in satisfaction with Angular. This year, it continues its downward trend.
35.8% of devs have used Angular before but would not use it again. Comparatively, 21.9% used Angular and would use it again. (We will see what happens to these numbers in 2020, when Angular v9 final releases.)
React, on the other hand, measures more favorably. 71.7% of devs have used React and would use it again. This is a slight increase in satisfaction compared to previous years.
2019 shaped up to be a banner year for React. Earlier this year, npm conducted a survey which revealed that 63% of JS devs write React code.
Tools of the trade
What should JS devs add to their toolkit? Respondents were asked about miscellaneous tools they use to code and what invaluable resources they use.
- Lodash and Moment.js: These two JS utility libraries are the two most commonly used by devs. Lodash provides help when working with arrays, numbers, objects, and strings; while Moment.js provides a library for displaying and manipulating dates.
- Brave: While Chrome is the most used browser for development, an honorary mention this year goes to Brave. 836 devs wrote in that they primarily work in the Brave browser.
- Webpack: Bundle your scripts, assets, and images with Webpack, the most used JS build tool.
- Stack Overflow: It comes as no surprise, but Stack Overflow is where JS devs go when they need help with a tricky problem. Mozilla’s Developer Network/MDN receives an honorable mention as the number two most consulted resource.
TypeScript is a typed superset that compiles to pure JS. 2018 and 2019 were major years for TypeScript and its adoption.
In 2019, 89% of respondents said they are satisfied with TypeScript. It ranked the highest in satisfaction, interest, and awareness when compared to other languages that compile to JS (Elm, Rason, ClojureScript, and PureScript).
What does the average JS developer look like?
- JS+ CSS = BFF: Overall, JS devs are also proficient with CSS. A full 90% of respondents said they have intermediate knowledge of CSS or better. 39.9% even consider themselves CSS experts and can create a front-end from scratch.
- Devs love Python: A quarter of multi-lingual JS developers also program in Python.
- Gender ratio: 91.3% of respondents are male; 6% female; 0.8% non-binary, and 1.9% of respondents preferred not to answer. These numbers may not reflect the actual reality of developers, as this is just one survey. However, the gap between those numbers is notable. Refer to our women in tech series for some advice and inspiration from women in the field.