News for hackers. Stuff that matters.
Re:TypeScript’s quirks: How inconsistencies make the languag... by cryptica on Sunday February 02, 2020 @04:57AM (#22216150)
Well designed tests lock down features not code. That's why I mostly write integration tests.

I write unit tests once the project is stable and usually only for parts of the logic that are either very complicated or operationally critical. I try to avoid implementing 'very complicated' modules as much as possible.

Re:TypeScript’s quirks: How inconsistencies make the languag... by the_gipsy on Monday February 03, 2020 @05:43PM (#22230165)
Do you mean e2e tests? Because those are the only ones that test features. Integration tests are the biggest offenders of "code lockdown". They don't really test features, yet they have to observe too many implementation details.

Unit tests can't really lock down code, or then we shouldn't call those "unit" anymore.