Hacker News new | ask | show | jobs
by naasking 976 days ago
> I became increasingly terrified of making changes.

That's the main value of automated tests.

1 comments

I rarely feel like tests make it easier for me to make changes later. Types do give me that feeling pretty reliably, though.
Agreed that types are better, but good test suites contain plenty of reminders of corner cases that you probably forgot to consider during your refactor.