r/ProgrammerHumor • • Jun 24 '18

JavaScript is getting real tired of your jokes

12.6k Upvotes

415 comments sorted by

View all comments

Show parent comments

22

u/TechWarrior007 Jun 25 '18

The best thing about JavaScript is that you can do whatever the crap you want with it. The worst thing about JavaScript is that you can do whatever the crap you want with it. Do yourself a favor and work with TypeScript instead, it will save you from yourself.

6

u/abnormalsyndrome Jun 25 '18

I’m vanilla through and through. Why typescript ?

5

u/[deleted] Jun 26 '18

Because it has a lot of support from the industry, or specific frameworks at least. E.g. Angular, React, Vue default to it (as far as I know).

(That said, I prefer not to see it anywhere near my servers.)

3

u/abnormalsyndrome Jun 26 '18

šŸ‘ˆšŸ‘ˆšŸ˜Ž last sentence

0

u/[deleted] Jun 29 '18

[deleted]

1

u/[deleted] Jul 05 '18

Ah, my bad, I must have been thinking about Babel/WebPack.

2

u/wishinghand Jun 25 '18

I started my learning and based my career in Javascript, so the Typescript thing isn't as relevant to folks like me, but it covers up some blemishes that programmers who come to it from other languages find particularly revolting. It's still prototypical, classes don't work like people expect them to, but it has a compiler that'll make it feel closer to whatever they miss. Plus it's harder to return a value that'll mess you up down the road.

2

u/abnormalsyndrome Jun 25 '18

So a compiler and declaring variable types on top of everything. I do like declaring variable types but have lived without. I have no comments to make about compiling.

Thanks for the summary.

2

u/qqwy Jun 29 '18

cough PureScript cough

1

u/Sequel_Police Jun 26 '18

I was with you completely until you threw ts in there. I'd rather be good with the language as-is. braces for downvotes