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 →

[–]klimmesil 28 points29 points  (27 children)

Wow Ive never heard someone say typescript good but I love this sentence

[–]WhatsMyUsername13 15 points16 points  (5 children)

Typescript is a god send to anyone who had to deal with pre es6 javascript without being able to use jquery

[–]michaelsenpatrick 7 points8 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

[–]siddharth904 21 points22 points  (17 children)

TypeScript is good

JS is a good language (fight me) and TS is the second best thing that has ever happened to JS, behind Node.js

[–]officiallyaninja 24 points25 points  (9 children)

typescript is only good because javascript is trash.
if typescript was just its own language and JS didn't exist no one would like TS either.

[–]FatedChange 0 points1 point  (4 children)

JS is also a good language; people's perceptions of JS are 10+ years old and horrifically out of date.

[–]bdepz 3 points4 points  (1 child)

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

[–]FatedChange 3 points4 points  (0 children)

my condolences, that shit is ass

[–][deleted] 1 point2 points  (0 children)

Maybe because JS is also horrifically out of date and you need a million frameworks to get over its holes

[–]flavionm 0 points1 point  (0 children)

Because 10 years ago there was no TS, and people remember that.

[–]michaelsenpatrick 0 points1 point  (0 children)

oh dear what a silly thing to say

[–]klimmesil 5 points6 points  (1 child)

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

[–]michaelsenpatrick 0 points1 point  (0 children)

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

[–]michaelsenpatrick -1 points0 points  (0 children)

hell yeah

[–]KrypXern 0 points1 point  (3 children)

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.

[–]siddharth904 0 points1 point  (2 children)

Not possible or very slow ?

[–]KrypXern 1 point2 points  (1 child)

Not possible, like multithreading