"Refactoring is the process of changing a software system in a way that does not alter the external behavior of the code yet improves its internal structure. It is a disciplined way to clean up code that minimizes the chances of introducing bugs”
That’s not my definition, but an Excerpt from “Refactoring: Improving the Design of Existing Code - Martin Fowler” ( Great book 💯)
For instance, refactoring is not done to introduce a new feature or to fix a bug, but the aim is to improve the structure of the code and not change its behaviour. With that in mind, refactoring has become much easier.
Software Engineering is truly a never ending learning process. 😃😃
Thanks for Reading!