by sibeliuss · 3y ago · 0 comments
Also, I think the examples given in the article are circumstantially exceptional, if you read more closely into the why.
I don't have any confidence in refactor large swaths of code without widespread tests, with or without TypeScript. Types covers such a small area of where we (I) usually introduce bugs.
It’s not that there aren’t bugs, but I have a high degree of confidence after fixing a small number of bugs that the overall system has a high degree of correctness.
There are several things that go into this
- good types
- good tests
- good interfaces between modules
All three I think give me a big jump in how quickly and confidently I can refactor.