55

“Don’t comment bad code—rewrite it.”
—Brian W. Kernighan and P. J. Plaugher

Comments
  • 1
  • 1
    I would personally do both
    1. try to understand it
    2. document it, write comments
    3. Write unit tests if possible.
    4. Rewrite the code

    Chances are that the code to rewrite is quite big and it's never simple to do so. In other words, you will introduce bugs by doing it. Worrying comments is much safer and faster and writing unit tests will somewhat reduce the amount of bugs you will introduce while refactoring.
  • 0
    how to password protect a folder in windows 7 if you are searching this then you should click this link https://windowsclassroom.com/how-to... and read articles and follow step by step thank you
Add Comment