How to restrain one's self from the overwhelming urge to rewrite everything?

后端 未结 20 903
遥遥无期
遥遥无期 2021-01-30 12:50

Setup

Have you ever had the experience of going into a piece of code to make a seemingly simple change and then realizing that you\'ve just stepped into a wasteland tha

20条回答
  •  Happy的楠姐
    2021-01-30 13:50

    Write more unit tests just to find out that the code is running perfectly fine.

    If you still have the urge to rewrite it, you will have some tests to find out that your rewriten code is now failing ;)

提交回复
热议问题