7
How to Fix a Bug: Tests, Hypotheses, Timeboxes
(verraes.net)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
IMO okay advice for specific types of issues, but way too prescriptive to work well generally.
Steps 3-4-5 are good, and breaking it down like that could be helpful to readers, but in my mind, it should be so well practiced and executed so naturally that it feels like a single step. I also think there ought to have been a mention of the fast iterative experimentation where 3-4-5 is repeated.
Break the build (and block other devs)? Is this a 1-team company?
Write a test first? Maybe, if you've already got a well isolated, somewhat understood problem whose solution won't require deeper restructuring.
Immediately "Brainstorm as many hypotheses ... as you can think of"? Inefficient if you already have a good idea of what's wrong (wasting time guessing), and also inefficient if you have absolutely no idea what's wrong (wasting time with uneducated guesses).
Still, for those very hard bugs that everyone just hovers around and procrastinates, this is perfect advice!