Re:TypeScript is now officially 10 years old
by kuramitropolis on Sunday October 09, 2022 @08:14AM
(#33140311)
And then you have to contribute to a codebase with restrictive ESLint (bleurgh!) configuration, so you can't even try out whether your code works because the tooling disallows you from compiling it as long as it contains "any", and the other devs are like "but muh best practices". So not only you gotta work around TS, you gotta do it invisibly. How did people even live before VSCode's type hint popups covered up the previous line?
Re:TypeScript is now officially 10 years old
by xodeus on Sunday October 09, 2022 @08:39AM
(#33140451)
This comment has just triggered my PTSD from every Typescript project I've had to work on.
Re:TypeScript is now officially 10 years old
by wiseowise on Sunday October 09, 2022 @08:25AM
(#33140364)
> How did people even live before VSCode's type hint popups covered up the previous line?
Same. Like normal people do when they use Visual Studio/IntelliJ/QTCreator
Re:TypeScript is now officially 10 years old
by kuramitropolis on Sunday October 09, 2022 @08:43AM
(#33140475)
I.e. cringing all the time?
Re:TypeScript is now officially 10 years old
by wiseowise on Sunday October 09, 2022 @09:34AM
(#33140821)
Cringing at compile time safety or what?
Re:TypeScript is now officially 10 years old
by kuramitropolis on Sunday October 09, 2022 @10:32AM
(#33141501)
No, cringing at some "helpful" popup appearing right over the previous line of code. If anything, they could've made it appear under the current line; code's still written top to bottom so it's less likely for "suggested relevant info" to obscure the actual relevant info.
Re:TypeScript is now officially 10 years old
by Tyriar on Sunday October 09, 2022 @11:26AM
(#33142111)
You can press f8 to view the problem in a "peek view" under the problem line, or view on the problems panel.
Re:TypeScript is now officially 10 years old
by kuramitropolis on Sunday October 09, 2022 @05:22PM
(#33145465)
> 10542667 Aug 9 20:40 node_modules/typescript/lib/typescript.js
aint fitting ten megs in a peek view... :(
It is so liberating to type a variable as `any` when sketching new code, figuring things out, that I would venture to say that any language not having the `any` type actually actively hates the developer.
[1] https://www.typescriptlang.org/docs/handbook/2/everyday-type...