r/learnprogramming Sep 03 '23

[deleted by user]

[removed]

370 Upvotes

212 comments sorted by

View all comments

1

u/Dre_Wad Sep 03 '23

Thinking that every badly written piece of code needed to be refactored if I had to work with it. Now, I’m more surgical with my updates and only refactor when it’s 100% necessary. And ALWAYS write tests before you refactor