Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
May 30, 2022 05:53 am GMT

JavaScript types feaver

Good morning folks,
This is my response to a Reddit post about "why everybody must use types"

JavaScript started mainly for the web, and web in general is not so demanding in regards of programming safety. There you have other fanatics also about types that can never understand why in most cases, you are being productive and permissive to crashes until discovered even in production. JavaScript has never been meant to be typed, again, until when you have people thinking the purpose of coding is to write code that doesn't crash regardless if it fulfils any business need. TypeScript ? a burden for most of web project.
If you want to write highly safe web-apps, stick with Java, or follow some edgy tech like .net SAFE stack, or go for Haskell or some web hacking.
If we were stuck with CGI, then you have no animations, no colours, no blogs, no .... You only would have university web pages.
Before telling me NodeJS is not only for the web, we know NodeJS is Google chrome's runtime engine, so inherited from the web too.
Same goes for Reactive programming, a hype big companies push for their brands, and to assure their future engineers which are 0.1% of graduates.
Conversely, what do you think of JSON, Rest, and NoSQL, all are for the web, and all are not typed kindof programming.
Facebook and Twitter apps particularly crash like no other home made app, and obviously, in a request lifecycle, there is no harm, put it inside a try-catch and log errors.

What do you think ?!


Original Link: https://dev.to/bacloud22/javascript-types-feaver-1gh

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To