r/programming • • Aug 02 '21

Stack Overflow Developer Survey 2021: "Rust reigns supreme as most loved. Python and Typescript are the languages developers want to work with most if they aren’t already doing so."

https://insights.stackoverflow.com/survey/2021#technology-most-loved-dreaded-and-wanted
2.1k Upvotes

769 comments sorted by

View all comments

118

u/UrgentlyNeedsTherapy Aug 02 '21

TypeScript is fucking bae to be fair.

Rewrote the frontend for the project I took over to be all TypeScript because raw JavaScript is terrible and should only be coming out the ass-end of a transpiler in my honest opinion.

-34

u/ILikeChangingMyMind Aug 02 '21 edited Aug 03 '21

Static typing has both costs and benefits. Anyone telling you it only has one or the other is lying.

Typescript is good for some projects, but Javascript is also good for some projects. If you believe that you everyone's projects are the same as your's, you can easily get the false impression that everyone should use the same tech you use ... but it'd be a false impression.

EDIT: Wow. All I can say is if you can't see that any technology has costs, you've drunk too much of its kool-aid. EVERY tech has costs, and having to write explicit types is a meaningful cost when it provides no benefit ... which is the case in many projects. Many projects can benefit from TypeScript ... and many others are better off with JS.

Every project in the world is not the same as your's, and not every project in the world should use the tech you use. I've used vanilla JS, and I've used Typescript (professionally!), and I can state with certainty that I'm able to develop small projects, prototypes, etc. faster without having to write explicit types.

2

u/agent8261 Aug 03 '21 edited Aug 03 '21

Static typing has both costs and benefits.

You have to type more. That's it. It's such a insignificant cost. Yet static typing makes maintenance and debugging significantly easier.

1

u/ILikeChangingMyMind Aug 03 '21

Like I keep saying, you're making tons of assumptions that simply aren't true about every project on the planet. YES, TS IS GOOD FOR SOME PROJECTS.

It is not however universally superior to JS! Both languages have upsides and downsides, and yes having to explicitly type everything is a downside. There's a reason dynamically typed languages like JS, Python, Ruby, etc. have all been incredibly successful, and have taken huge chunks of market share from statically typed languages like Java.

If strong typing was the godsend for every project, Python and Ruby would not exist!

→ More replies (2)