Reputation: 11
What are the advantages and disadvantages of refactoring code smell in software quality?
Upvotes: 0
Views: 5728
Reputation: 11
Advantages: 1. Refactoring is a really good weapon to maintain the code 2. It's interesting thing to do whether part of current task or as a separate task 3. Make the code clean and organized 4. Help to follow principles like SOLID, GRASP, etc
Disadvantages: 1. It's risky when the application is big 2. It's risky when the existing code doesn't have proper test cases 3. It's risky when developers do not understand what's all about
Upvotes: 0
Reputation: 1078
Although refactoring does not add features or functionalities in a software system, it is sharp weapon for developers in their maintenance activities. It makes a software system easier to understand and cheaper to modify without changing its observable behavior by changing its internal structure.
The purposes of refactoring according to Martin Fowler (Father of Code Smell) are stated in the following:
Specially for long-term software, it is essential to refactor the code in order to make the software more adaptive. However, you definitely do not perform refactoring tasks, if it exceeds your budget and time. In essence, stop refactoring when you -
Upvotes: 3