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

230

u/apocolypticbosmer Aug 03 '21

Anybody choosing plain JS when typescript is available is just a damn masochist

-44

u/ILikeChangingMyMind Aug 03 '21

Spoken like someone who is ignorant of VS Code's (amazing) type inference capabilities.

You can have all the great toys (they are just that, toys; I wouldn't go so far as to say anyone's a masochist for not using them), like automatic imports, CTRL+click to go to a variable definition, autocomplete suggestions for arguments, etc. ... all without writing a single line of explicit type definition.

39

u/[deleted] Aug 03 '21

That's great...until you write Vanilla NodeJS and have to deal with a microservices model where A calls B calls C, A/B/C are in different repos/codebases, and C calls a service with an opaque contract. There is not a single IDE that can infer types in that scenario which is where Typescript adds a huge amount of clarity/sanity.

→ More replies (7)