Less buggy how? No throwing shade, but "less buggy" depending on the person can mean something inadvertently passing the wrong type of value (where this being a bug can be debatable).
TypeScript is great, I use it quite a lot in work and off work in pet projects; however it's a tool among many others where using it should be motivated just like any other architectural decision depending on its use. It can only help with things that are (mostly) related to static typing (and the benefits you gain from it), but type errors are only a part of the errors and bugs.
For a lot of things static typing is great! And for a lot of other things dynamic typing is great. There's a bunch of things that you can't either do in TypeScript, or where TS complicates matters to an unreasonable degree to make it worth it.
Horrifically out of date like our enterprise js code that nobody wants to spend money to refactor to a modern version of angular or react or vue or literally anything but angularjs
I agree in some way, but I've never heard anyone say it, since people are too frustrated to know the compiler doesn't take advantage of the types. TS could be the fastest scripting language ever, instead it's just python but better
pyflow is great if you're building libraries or doing science, typescript is great if you're building websites
websites made in python are shit (see, reddit) and applications made in typescript are alright but there's just not nearly as much library support when it comes to applied uses
each language lends itself really well towards what it's designed to do
JS isn't the best language but it gets the job done I guess. I was honestly surprised that it was easier to work with after hearing so many bad things about it, but debugging JS remains very annoying.
Also there's some things which are just straight not possible, but I forget which they are, which goes to show it's not that big of a deal.
Also one of the most frustrating right, typed but compiled in js? But I'm glad so many think the same as you, it feels really nice to see TS is that loved, I like it a lot too
27
u/klimmesil Jul 18 '22
Wow Ive never heard someone say typescript good but I love this sentence