Code Cast: Legacy Coderetreat Episode 3 - Fix a Bug [Java]

Опубликовано: 18 Март 2026
на канале: Adrian Bolboaca
613
5

During this code cast you can see how to fix a bug on existing code. System tests and unit tests are used to make sure the minimum amount of code is changed.
The bug is characterized by a test and then another test is added to show the correct functionality.

As a general practice: commit often, after each small change or refactoring. This way of working ensures that if we do any mistake, we can go back without trying to find a way to fix the system and lose precious time.

All these steps ensure taking a minimum risk when changing code that you do not know.

To read about the technique please see http://blog.adrianbolboaca.ro/2014/05...

Programming Language: Java