What other college besides Stanford has chosen JS for their freshmen curriculum? One college does not a pattern make.
JS is #1 on GitHub because:
- The web is crazy hot, and JS is the only language native to the web browser, so developers have no choice.
- Nearly every web repository that is stored on GitHub, whether it’s for Java, Python, C#, PHP, Ruby, etc., must include some JS. And GitHub include these in their JS count. In other words, JS is vastly overrepresented.
- JS is perhaps the easiest language for beginners to access, as it requires hardly any setup. All you need is a web browser and a text editor. Note that this says nothing about how good the language is. Easy to access != good programming.
Other language indices that do not rely solely or largely on flawed GitHub data are more balanced in their results. TIOBE and IEEE Spectrum, for examples, place JS at #8. JS is #5 at PYPL and #6 at CodeEval. At HackerRank, JS is #7.
Even when it comes to job postings, JS is #3, well behind Java, according to Indeed.com.
I’ve seen no evidence that JS has been trending upwards, nor trending faster than any other language. Perhaps you can show me the data.
And, by the way, it would be easy to show that Go language is trending up much, much faster than JS. In just two years, Go has gone from near obscurity to Top 20, and even Top 10, on a number of language indices…#18 at TIOBE and PYPL, #15 at RedMonk, #10 at IEEE Spectrum and CodeEval, and #11 at HackerRank.
Finally, what are these “advantages” of JS you refer to?
- Ease of learning? Python is easier, which is why it’s the second most popular language in the world. Smalltalk and Scheme are easier. Go is easier.
- Productivity? Smalltalk and Ruby are provably far more productive.
- Ecosystem? Java, Python, and C/C++ have ecosystems that are just as big.
Everywhere else but the web, JS has relatively few advantages. Server-side, JS (Node) is up against many competitors, including Go, Scala, C#, PHP, etc. In mobile, you can do cross-platform with Java and Python and others, or stick to native because it’s more reliable and robust. JS only dominates in the web space.