Hacker News new | ask | show | jobs
by mattgreenrocks 3279 days ago
You need to write more structure than if you had simply just put all the code in the web handler or whatever. You also need to be able to abstract all DB/API calls if you want to test easily, as mocking things you don't own just leads to pain later on.