What is code refactoring ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

What is code refactoring ?

20th Apr 2017, 1:04 PM
Mohammad Edalat
Mohammad Edalat - avatar
3 Answers
+ 7
it's all about improving the code without changing it's original behavior. "Refactoring is the process of changing a software system in such a way that it does not alter the external behavior of the code yet improves its internal structure" u can find more details/definitions on internet.
20th Apr 2017, 1:56 PM
Eranga
Eranga - avatar
+ 7
@eranga you answered it very well but its all theoretical. Refactoring help you in: 1) Changing variable names, function names without affecting the code execution. 2) Changing package names, file names, storage locations, databases without affecting the code execution. 3) Deleting irrelevant files, lines of code in a way that program execution not get affected. 4) Moving data between multiple files in a software project securely. and many more.... Happy Coding....😊
21st Apr 2017, 2:20 PM
Sandip Bhambre (Sandy)
Sandip Bhambre (Sandy) - avatar
+ 1
@sandip Well explained.
23rd Apr 2017, 9:05 AM
Murray Chapman
Murray Chapman - avatar