1.

Explain refactoring.

Answer»

The word 'refactoring' describes the process of improving the internal structure, the operation, or the aesthetics of a code or component without changing/affecting its external behavior. Teams working in Agile are responsible for maintaining and enhancing their code on an incremental basis, Sprint by Sprint. Without refactoring, an Agile project will end up with poor code quality, such as unhealthy dependencies between classes, too many responsibilities per method, improper design of class responsibilities, and multiple forms of confusion and clutter.  Code refactoring helps to simplify ambiguous and complex code by removing chaos.

In the following example, it can be seen that the 5th module is a refactor. A refactor (5th) is usually broken down into several sequential micro-refactors, and each of those micro-refactors must be tested to ensure they are free from errors.




Discussion

No Comment Found