Hacker News new | ask | show | jobs
by losvedir 1362 days ago
Typescript as a language is better than "isn't too bad", it's great! I love the syntax for unions and how normal things like "if" will narrow types.

But I agree that it's a shame that the JS ecosystem is such a mess. Granted, dealing with it is essentially Typescript's purpose, but I would love for it to be a full fledged language on its own, divorced from JS. How cool would it be if you could write normal backend apps in it and compile them to native code?

I use Deno a bit and pretend, but it's not quite the same.

2 comments

I agree, I wish there was more incentive for developers (especially on the front end side!) to not install every package under the sun and instead be a little less "fancy" or aim for satisfying the 90% rather than the 100%.
I wished Flow or ReScript would have won.

TypeScript is too C#-ish for my taste.

Well, still better than nothing, I guess.

Make your linter forbid the class keyword, it's all about how you write it. The language allows both OOP and functional styles.
Look at the Typescript repo itself.

Very much not like C#. Frameworks like Angular use it very much like c# though.

Yes, it's an okay-ish language.

Often bette than pure JavaScript, which is also an okay-ish language.

So, I think, overall we're better off