Live data from Hacker News

TypeScript is now officially 10 years old

coderoasis.com

11–20 of 207 posts

Re: TypeScript is now officially 10 years old

#11
post #2

The post mentions one of the most important factors in TypeScript’s adoption: it launched, from the start, with good tooling.

In my opinion the most important factor was that it is a superset of JS and any valid Javascript code is/was valid TS code. That allowed for gradual adoption and you didn't have to risk going all-in into new technology.

Re: TypeScript is now officially 10 years old

#12
Thank you, Anders Hejlsberg. As a newbie in front-end development, I am grateful to TypeScript (and its integration with VSCode) for taming the dynamic beast and keeping me and my codebases sane. The pragmatic design and composable nature of TS help it fit easily within the JS ecosystem, and the productivity boon helps it survive in that tumultuous landscape.

Re: TypeScript is now officially 10 years old

#13

Earlier quoted context omitted.

That unfortunately hasn’t helped C# become more popular outside of Microsoft legacy shops even when it did go cross platform and open source.

What is a "Microsoft legacy shop" ?

Businesses that profit money without VC funding.

Re: TypeScript is now officially 10 years old

#15

Earlier quoted context omitted.

That unfortunately hasn’t helped C# become more popular outside of Microsoft legacy shops even when it did go cross platform and open source.

What is a "Microsoft legacy shop" ?

Banks, insurance companies, government agencies, “enterprise development”.

Re: TypeScript is now officially 10 years old

#16
post #14

Wanted to try it, proceeded to install it with npm and it was incredibly scary, both the amount of stuff it pulled in and various warnings. No thanks, I'll stay with languages with more self-contained compiler.

I don't understand what you are referring to - the TypeScript compiler has 0 (non-dev) dependencies: https://github.com/microsoft/TypeScript/blob/main/package.js....

Re: TypeScript is now officially 10 years old

#18
post #2

The post mentions one of the most important factors in TypeScript’s adoption: it launched, from the start, with good tooling.

Microsoft always had great tooling

Mostly, not when the domain is COM, and WinDev uses it all over the place.

Re: TypeScript is now officially 10 years old

#20
post #9

>TypeScript never set out to build a separate, distinct, and prescriptive language. Instead, TypeScript had to be descriptive. Sadly, the majority of people writing Typescript rarely care about descriptive and readable code these days. Somehow the focus shifted from using types to better understand complex systems through the code itself , to writing whatever polymorphic union type abomination that yields the best In…

I agree, but I would like to say that this is more due to the limitations of TypeScript (and JavaScript) and the need for developers to work around those limits, rather than anything else.

TypeScript is great, but it is also still very far from being complete in my opinion.

I used to do mostly Java and a bit of TypeScript, changed teams and now do mostly TypeScript and a bit of Java, and this unfinished feeling is striking, even for relatively basic things (enums).

I think the modern compiler options / TypeScript rules such as "hey this variable can be undefined but you didn't specify it", "hey, it can also be null, don't forget that" are commandable, but just don't work well for the web. I know it's configurable, but it just makes for a bad experience.

Still, love TypeScript. I wouldn't do any JavaScript project anymore, installing the TS compiler is always my first step.

Post reply on HN