News for hackers. Stuff that matters.
Re:The Wrong Abstraction (2016) by jasonhansel on Sunday July 05, 2020 @11:56PM (#23744548)
Refactoring is only error prone if you don't have integration tests. The advantage of extensive integration testing is that you can relentlessly refactor without fear of breaking things.
Re:The Wrong Abstraction (2016) by jonahx on Monday July 06, 2020 @01:16AM (#23744930)
I'd much rather have them than not, but don't fool yourself into thinking you can refactor without any fear because you have integration tests.

No matter how many you have, they'll only be testing a tiny fraction of your possible code paths.

Re:The Wrong Abstraction (2016) by yxhuvud on Monday July 06, 2020 @01:59AM (#23745118)
Tests are only sufficient if they tests cover the failure modes of the new abstraction. That is very often not the case.

Tests still help a lot, but they don't reduce the risk to zero.