Write a code that endures endless business requirements: Part-2 On Code Refactoring! Introduction So, you got to know what are the consequences of bad code (here & here). You also got to understand how you can objectively decide if a particular piece of code is horrible or not (here).  And if it happens to be devilish based on the quality metrics, how can we refactor that code? Then comes the question: Ok, I have inherited…