|
|
## Refactoring Code
|
|
|
|
|
|
In the software companies, there will be times when old software code (also legacy code) needs to re-written with newer optimizations and syntax. This does not add a new feature but improves the working of the existing code. This process is called as refactoring code.
|
|
|
|
|
|
## Advantages of refactoring
|
|
|
1. Improved code readability
|
|
|
2. Reduced code complexity
|
|
|
3. Improved performance
|
|
|
4. Coding style compliance
|
|
|
|
|
|
At then end the goal is to achieve simpler, cleaner, faster and code compliant code without changing user functionality.
|
|
|
|
|
|
### Refactoring practical
|
|
|
|