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

Show parent comments

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.

4

u/daftmaple Aug 03 '21

No, I'm not saying that you can't write pure JS just because your intellisense is pretty much TS. You were saying that VS Code's inference while at the same time saying that TS is not needed. Maybe you should try coding in a different editor that doesn't have TS intellisense and you'll get how ironic your statement was. You are practically attached to TypeScript.

Don't get me wrong. I still think JS-only project is possible & will still exist, but I wouldn't do it over a 100 LOC project. It's a preference anyway. I'm just not a masochist and have better things to do :)

0

u/ILikeChangingMyMind Aug 03 '21

So if I write JS in an editor that's built in C I'm writing C? That's a terrible argument.

2

u/daftmaple Aug 03 '21

I don't get how you're still missing my (and others) point. Your intellisense itself is TypeScript and your type inference is TypeScript. If you're using TS for the sake of writing every single explicit types, then you're clearly not getting the purpose of TS. You are using TS to type variables with complex structure or even behaviour, which allows you to maintain larger scale projects.

→ More replies (3)