3 ms·
But my personal workflow is to prevent the errors in the first place. Too many times I’ve made “simple” changes that were “obviously correct” and whose effects
by gbacon 3y ago
But my personal workflow is to prevent the errors in the first place.
Too many times I’ve made “simple” changes that were “obviously correct” and whose effects were “completely localized” only to wind up eating healthy servings of crow. If correct up-front analysis were possible to do reliably, we would have no need for profilers to diagnose hotspots, debuggers, valgrind, etc., etc.
So I enlist cheap machine support to check my work.
- onetimeuse92304 3y agoSure. Only it is a lie that it is cheap. Maybe CPU cycles are cheap, but writing that code is not. Which is exactly the point of my rant. My position is that it makes much more sense to focus on tests that test observable behaviour that is not supposed to change a lot because it is a contract between the service and whoever the client is. Writing this code is still expensive, but at least now it is much easier to make sure the return is higher than the investment.