News for hackers. Stuff that matters.
Re:TypeScript Book by IshKebab on Sunday July 09, 2023 @08:16AM (#36653846)
Do you have an alternative suggestion? Because the ability to type "." and see what comes next, go-to-definition, find all references, rename symbol, etc. are all enormous time savers.

Just as yanis_t said, they're easily worth it even if you ignore the significant bug reduction (approximately 15%).

I don't know of any other way to get that kind of productivity boost. What would you suggest instead?

Re:TypeScript Book by chrisco255 on Monday July 10, 2023 @08:22AM (#36665304)
VSCode and other IDEs can do . completion, go to def, rename, etc on plain JavaScript. That's not a unique feature of typed languages.
Re:TypeScript Book by Capricorn2481 on Monday July 10, 2023 @09:19AM (#36665974)
But find all references doesn't actually work without typescript if your data is passed around enough, and that's an important one for refactoring.
Re:TypeScript Book by IshKebab on Monday July 10, 2023 @05:58PM (#36673537)
No they don't. They can make a decent guess occasionally but it's not remotely the same as in typed languages where it's accurate and works all the time.

It is absolutely a unique feature of typed languages.

Re:TypeScript Book by solumunus on Tuesday July 11, 2023 @06:11PM (#36687934)
In far fewer cases.