CODE REFACTORING

CODE REFACTORING The most popular guiding principle for code refactoring & order of importance is like: Readability > Modularity > Efficiency > Length of Code 👉Readability Make sure that your code is easy to understand but not just that you know yourself but maybe say your future self, can you quickly understand what's going on is everything organized in a logical way, is everything commented so that you can easily understand what each part of the code is about. And also this is a very common scenario if you're working in any sort of company or team you're likely to be cooperating on the same piece of code. So try to keep a code readable. 👉Modularity Now the next thing is modularity and this kind of relates to how easy is it to reuse bits of your code and how easy is it to narrow down. Say if you know one particular part of your web site breaks down is your code modular enough that you would be able to narrow down on the exact section o...