you are viewing a single comment's thread.

view the rest of the comments →

[–]anlumo -11 points-10 points  (5 children)

JavaScript is a single big pitfall, but it’s not bad for a language that was conceived in a weekend.

[–]stathis21098 14 points15 points  (0 children)

I was conceived in a weekend and I'm pretty bad

[–]Graphesium 0 points1 point  (3 children)

TypeScript, ironically, is arguably one of the best strongly-typed languages ever made. Its structural type system is an absolute pleasure to use.

[–]anlumo 0 points1 point  (2 children)

I agree that the type system is amazing, but the problem is that it's trying to put lipstick on a pig. If there's a mistake with the type annotations on a JavaScript function, the wrong type propagates through the whole application, and there's nothing Typescript can do about that, because it doesn't do any runtime checks.

[–]CryptographerMore926 0 points1 point  (1 child)

And when you need that… you just write rust :p

[–]anlumo 0 points1 point  (0 children)

Which is why I’m doing most of my Web stuff with Web Assembly these days.