4 ms·
My own code is contortious. I refactor it regularly to reduce that, but it still can be better.
by WalterBright 6mo ago
My own code is contortious. I refactor it regularly to reduce that, but it still can be better.
- glial 6mo agoI think this agrees with the parent's point. How do you know when to refactor?
- WalterBright 6mo agoI've been coding for 50 years. When I write code, I think it is great work. About five years later, I realize it was crap. This is true of all the code I write. So, about five years later is the right time for refactoring. P.S. It takes about five years to forget what you thought you were doing with that code, and see the reality of what you wrote. https://www.imdb.com/title/tt0037671/ https://www.imdb.com/title/tt0037671/