A guide for businesses
Every fix breaks something else — where should you start?
A fix removes one bug, but after deployment a report, payment calculation or document delivery stops working. The team becomes wary of further changes because their effects are hard to predict. Start by tracing dependencies and deciding how to check fixes before they go live.
By Michał Drab ·
Why a small change can have a large effect
Features in separate parts of an application may use the same data and rules. Changing how an order total is calculated can therefore affect documents, payments and reports too. When these dependencies are unclear in the code or documentation, some effects are easy to miss.
The cause may also be a different server configuration, a change to an external service or data that was left out when checking the fix. A problem appearing after deployment is a useful clue. Timing alone does not explain the cause.
Describe the error so it can be reproduced
“It stopped working after the update” is not enough to assess the problem. For one specific case, write down:
- What the user did and what result they should have received.
- What happened instead: an error message, an incorrect status, a missing document or wrong data.
- When the problem occurred and which change had been deployed beforehand.
- Whether it affects every case or only particular data, permissions or ways of handling the task.
The developer should compare this account with the application version, configuration and error logs. If the problem blocks daily work, first agree on a way to restore service, then address the cause. Further changes made without understanding the situation can make diagnosis harder.
Example: a discount affects a payment calculation
An illustrative example, rather than a specific implementation: a company changes its discount rules. The new form shows the correct order total, but the sales report still uses the previous calculation. Users see two different amounts for the same order.
Checking the form alone will not reveal this mismatch. Establish where the authoritative total is stored, which features read it and whether it is calculated again elsewhere. Whether the new rule should apply to previously saved orders is a separate decision. The company needs to confirm that rule.
Check the features that need to keep working too
Before a fix, agree on what should change and which behaviours must stay the same. In the discount example, check orders with and without a discount, an existing document and a report using the data. Expected results should follow agreed business rules, rather than simply reproducing what the application currently does.
Repeatable checks can be recorded as automated tests. They help detect when a later change breaks a previously checked behaviour. Martin Fowler discusses this role in Self-Testing Code.
If the system has no tests, a reasonable starting point is the area about to be changed. You do not need to describe the entire application at once, but checks should cover important dependencies and exceptions. Passing tests does not confirm that untested cases work.
Check the change away from daily operations
A separate test environment lets you reproduce the problem without altering live orders and documents. It should account for relevant software versions and settings. If it differs from the live system, be clear about what a test there cannot confirm.
Representative data matters too: old and new cases, different statuses, missing information and unusual permissions. Prepare it with confidentiality in mind. Isolate real messages, payments and other external-service actions from testing, for example through the service’s test mode or simulated responses.
Separate the fix from a larger rebuild
An update that combines a bug fix, a data-structure change and new business rules makes it harder to identify the source of a problem. Where dependencies allow, first reproduce the error and check the fix, then make further improvements separately.
Small, controlled deployments make it easier to understand a change’s effects and respond to problems. This approach is described in Microsoft’s guidance on safe deployment practices.
A shared rule used by several features can be improved gradually, rather than adding a separate workaround in each place. The scope depends on the code and data. Agree on when to halt a deployment and how to restore service, accounting for data saved after the change.
How to tell whether the system is easier to develop
Review several subsequent changes. Record whether the same bugs return, how long checking a fix takes and how many problems only appear during real use. Track the time spent correcting data after faulty deployments separately.
The expected result is being able to explain what changed, which dependent features were checked and how to respond if a problem occurs. Simply stating that an application has been modernized does not provide that information.
With an existing system, I start by assessing the code, data, documentation and integrations. This establishes what can be improved within the current application and where a deeper rebuild is needed.
Questions about fixing an old system
Do bugs after fixes mean the system needs a rewrite?
They do not establish that on their own. First investigate data relationships, shared rules, configuration and the scope of checks. A decision to rebuild should follow an assessment of the current application.
Is it worth adding tests to an old application?
Yes, if they check behaviour that matters to the business. Start with the area being changed and its dependencies. A test that merely repeats how the code works without confirming the expected result may preserve a bug.
Does a test environment guarantee a successful deployment?
No. Its usefulness depends on how closely it matches the live system, the data used and the cases checked. You also need monitoring after deployment and an agreed way to restore service.
What should I prepare for a first conversation?
Describe one change and the error that followed it, when it happened and whether source code and documentation are available. Do not send passwords, keys or customer data in the first message.