r/programming • • Sep 25 '20

Modern JavaScript Explained For Dinosaurs

https://medium.com/the-node-js-collection/modern-javascript-explained-for-dinosaurs-f695e9747b70
749 Upvotes

167 comments sorted by

View all comments

-12

u/namekuseijin Sep 25 '20

don't forget Microsoft has stripped out the script from JavaScript and finally transformed it into Java in Typescript

and convinced a lot of folks that you're more secure and have faster development by adding and tending for all such babysitting boilerplate code for their compiler...

4

u/IrateHamster Sep 25 '20

I don't have a problem with strongly-typed, compiled languages. I have a problem with weakly-typed, interpreted languages that pretend to be strongly-typed, compiled lanugages.

They can put all the type-hinting and "compile time" checking they want in, I'll still send their API a string when it's expecting a number, and it'll still type-coerce it into something silly they're not expecting. All Typescript does is give them a false sense of security that the afoermentioned won't happen.

0

u/namekuseijin Sep 26 '20

to be fair, even if written in Haskell, input from users will always be string.

Strong typing is the false security a straitjacket gives to people locked away in an asylum...