Message from JavaScript discussions

January 2018

— Also there is whole argument of type safety

— 

Is it worth doing type safe js and lose time on development and also to learn to write type safe js in the first place for js developer ??

— You don't usually lose any time on development

— It's an implementation detail that has existing solutions

— Type safe js, depending on where it is, ranges from "nice to have" to "need to have"

— In a web app you can get away with unsafe code, but not serverside

— Serverside has lead to ring 0 kernel level remote code execution

— Any code that doesn't implement type safety in some form is generally vulnerable to attack over a much larger attack surface

Message permanent page

— Other than that, it can help with debugging

— Yeah that makes sense

— Also some have said that writing type safe code helps you understand your code better

— Yeah, it does, as you set up expectations for all the data you're working with, which helps you construct a solid data model specification

Message permanent page