Web developer, award-losing photographer and dog friend.
I was wondering if it’s worth our time. Can we all just adopt the most popular style if there is one, and stop arguing? So I’ve analyzed 100 most depended-upon npm packages and ran a survey with the same questions that ended up with 1169 respondents.
The results show less diversity in code style of popular open source projects: more than half use 2 spaces with semicolons. Many still don’t use any tooling to validate code style.
It could also be because many popular open source projects are old but in the survey people described what they used on their latest project.
Note: two projects of 100 are written in CoffeeScript. CoffeeScript itself is one of them. They and one with only native code were excluded from the results.
Subscribe to my newsletter: https://tinyletter.com/sapegin
Create your free account to unlock your custom reading experience.