2 ms·
As someone who has "strictified" a lot of code bases after the fact, starting out with `strict` is way less friction than adding it later on. Especially `stric
by moogly 4y ago
As someone who has "strictified" a lot of code bases after the fact, starting out with `strict` is way less friction than adding it later on.
Especially `strictNullChecks`. It's a massive headache to deal with that later on.
- eyelidlessness 4y agoYup. And strict mode tends to guide devs towards better code/API design. Stuff like function/method overloads with dynamic argument types might seem convenient when the types are loosey goosey, but it usually becomes obvious they’re probably a bad idea when you have to specify the types upfront.