2 ms·
"How much time does your employer allow you to spend on solving one bug?" It's hard to answer that question because bugs exhibit so much variation across many
by greenyoda 10y ago
"How much time does your employer allow you to spend on solving one bug?"
It's hard to answer that question because bugs exhibit so much variation across many variables:
- Some bugs take minutes to fix (e.g., an obvious typo or omission in the code) but others may take weeks to fix (e.g., the programmer misunderstood the requirements and has to rework a large part of the code to fix erroneous assumptions; or a bug occurs intermittently under conditions that nobody has yet figured out how to reliably reproduce).
- Some kinds of code may be harder to debug, e.g., a web app is usually easier to debug than a device driver, since there's more visibility into what the code is doing.
- Some bugs are of critical importance to key customers (and thus justify a big time investment), but some are in obscure parts of the product that nobody uses (and may not be worth fixing at all).
- Some bugs make it impossible to use an important feature (justifying a big time investment), but others can be easily worked around.
- Some languages have constructs that make code harder to debug. E.g., there are lots of bugs that arise from memory management in C (using stale pointers to heap memory, etc.) that can never occur in higher-level languages.
- It's much easier to fix bugs in code that you wrote than in code written by someone else (who may have left the company and is not available to answer questions).