Coding Skills: Part 6
- neelvinay17
- Sep 5, 2023
- 1 min read
While I generally talk about code which I have already done in the past, I wanted to discuss something that I am currently working on doing, but have not yet blogged about. The topic of discussion is code refactoring. It can be defined as "The process of restructuring code, while not changing its original functionality. The goal of refactoring is to improve internal code by making many small changes without altering the code's external behavior." (https://www.techtarget.com/searchapparchitecture/definition/refactoring#:~:text=Refactoring%20is%20the%20process%20of,altering%20the%20code's%20external%20behavior. )
In simpler words, it is essentially cleaning the code up to make it neater and easier to understand while retaining the code's original function. As I have mentioned before, I plan to add lots of details into this project, and so maintaining organization and structure will become key when it comes to editing or understanding my code. Of course, there are lots of other functions besides just keeping the code tidy, such as renaming variables, extracting methods out of a section of code and instead putting in a call for the method, searching for like areas of code and that can be put into separate methods with unique parameters and much more.

Image Source: https://lvivity.com/what-is-code-refactoring




Comments