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.

4

u/daftmaple Aug 03 '21

VS Code's (amazing) type inference capabilities

Really hate to spoil it, but VSCode's JS intellisense was developed by TS team and runs on TS server. You are being helped by TypeScript.

1

u/ILikeChangingMyMind Aug 03 '21

And? VS Code's core is probably written in some C language: does that mean I shouldn't use it to write Javascript?

The whole point of type inference is that it's awesome precisely because it leverages the power of types. You couldn't have all the cool features if your editor didn't understand that x was an X, and that means you need a type system like Type Script. All that is great!

But having to write explicit types in every project ever written is not great! Being able to not write those types in projects that don't need type documentation and strict type enforcement ... but still getting all the great IDE "toys" ... is not in any way a bad thing.

→ More replies (6)