Hacker News new | ask | show | jobs
by packetlost 717 days ago
> I've generally come to think that unit tests should be used to baseline something after it ships, but aren't that useful before that point

I disagree, but not entirely. I think there's a balance. Tests can be a great way to execute code in isolation with expected inputs/outputs and can help dramatically in absence of other ways to execute the code. But in general, I mostly agree. Tests are mostly valuable as a way of ensuring you don't break something that was previously working, but they are still valuable for validating assumptions as you go.