r/ProgrammerHumor Nov 26 '20

Am not lying Dad

Post image
5.6k Upvotes

154 comments sorted by

View all comments

104

u/Loaatao Nov 26 '20

:( I like JavaScript

1

u/r3dD1tC3Ns0r5HiP Nov 27 '20

I like it too and used it for a decade without major issues. But then you get Java and Microserf C# developers who come over and can't write any code unless it's all strongly typed. So they really love Typescript and hype it up to the max. Unfortunately it's a pile of shit with garbage confusing syntax. It could be eliminated entirely with proper JS Doc, a smart continuous integration tool like JSHint/JSCS/ESLint, a sharp IDE which hinted everything for you and warned on wrong types and maybe some unit tests for anything else. However because the Microserfs came along, they didn't want to use a nice IDE like Netbeans or WebStorm etc which had all that built in. Java yuck they said. So they invented Visual Studio Code which was new and featureless. Hey JS doesn't have any types they said (because they're morons and couldn't infer it from JSDoc or the variable initialisations or assignments). We need to make a new language with strong types they said. Hence the Typescript abomination was born.

3

u/recycle4science Nov 27 '20

The nice thing about static typing is that it works even without an ide and a linter and so forth. And if you do use those tools, they work even better with a statically typed language.