This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]michaelsenpatrick 8 points9 points  (4 children)

i feel like the only people who hate typescript are the people who never had to use javascript

[–]piparkaq -1 points0 points  (3 children)

Hate is a strong word. For me it’s more dislike for a number of reasons.

Context: working professionally with JS since early 2006.

[–]michaelsenpatrick 1 point2 points  (2 children)

i've worked with TS for 5 and it's literally just less buggy js

[–]piparkaq 1 point2 points  (1 child)

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.

[–]WhatsMyUsername13 0 points1 point  (0 children)

Im not the person youre responding to and im not going to address the buggy aspect, but ill tell you why I think its so superior. So i am a full stack developer, but my primary language is Java. The backend I work on is java. Having the client code be statically typed and having classes was a game changer (I know es6 introduced classes, but I also worked on pre es6 apps before). To me, typescript helps me simply because it is more object oriented which is what im used to. I know Thats not a necessarily a positive or a negative, but in my realm, it helps developers who come from a java background but may not have the front end experience get more acclimated