Hacker News new | ask | show | jobs
by tjallingt 2887 days ago
The graphs for major programming languages shows a decline in the number of monthly active users using JavaScript, interestingly this decline seemingly coincides with the incline of TypeScript users. I'd love to see whether people who stopped using JavaScript started using TypeScript instead.
2 comments

It's also a bit strange in that Flow and TypeScript are competing JS language extensions with nearly the same goals and scope, yet TypeScript is seen as its own language and Flow isn't. And, of course, JSX isn't valid JavaScript, but React programmers view themselves as writing code in JS. IMO, it would be better to put TypeScript projects in the JavaScript category and optionally have more detailed stats on the different JavaScript variants.

When I introduced TypeScript to my team at work, one of the things that I had to emphasize was that TypeScript isn't a new language; it looks and behaves just like JS, it just has some new syntax to declare types.

I suppose the practical matter here is that GitHub language stats can distinguish TypeScript because it uses the .ts extension, while other JS variants just stick with .js (and JSX sometimes is .jsx, but not always).

Of course! When my company decided to embrace javascript, I spoke out against javascript and pushed for typescript, the entire engineering team is writing typescript instead of javascript.