News for hackers. Stuff that matters.
Re:A 'CSS reset' for TypeScript, improving types for common ... by moogly on Saturday March 04, 2023 @07:49AM (#35020419)
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.

Re:A 'CSS reset' for TypeScript, improving types for common ... by eyelidlessness on Monday March 06, 2023 @03:21PM (#35047031)
Yup. 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.