Hacker News new | ask | show | jobs
by jjice 1107 days ago
Definitely agree with all of them. I didn't work at places that valued testing until fairly recently and I'm absolutely shocked that I was able to get by as long as I did without it (plenty of incidents and bugs were involved though).

Every book I've read on software develop always hits on testing and I can't believe I ignored it for so long saying "but my code is hard to test". Then it's your code's fault. If you can't write tests because the code isn't structured to do so, that means your code has bad structure IMO (I'm sure there are situations where this is trickier but they're the minority). The amount of bugs I produce has dropped dramatically since I started writing tests for almost all my code. Seriously a career changing thing that was pretty obvious but I just ignored.