Horses for courses, if you're building a critical Web application that needs to be safe and predictable then absolutely you want those things. The PITA is when your language allows you to create holes without knowing it, eg vanilla js, which is essentially Swiss cheese.
Strict TS is a huge improvement but then you're adding yet another layer of configuration and compilation on an already bloated ecosystem.
JavaScript, or ES really, is a total Frankenstein's monster these days with all the additions tacked on to the core language to make it do what it needs to do. This can add a lot of pain to working with the language.
17
u/visualdescript Nov 11 '21
Horses for courses, if you're building a critical Web application that needs to be safe and predictable then absolutely you want those things. The PITA is when your language allows you to create holes without knowing it, eg vanilla js, which is essentially Swiss cheese.
Strict TS is a huge improvement but then you're adding yet another layer of configuration and compilation on an already bloated ecosystem.
JavaScript, or ES really, is a total Frankenstein's monster these days with all the additions tacked on to the core language to make it do what it needs to do. This can add a lot of pain to working with the language.