Comment on Opinions on how to deal with duplicate code.
Phoenix@programming.dev 1 year ago
If I find myself repeating more than twice, I just ask “Can this be a function”. If yes, I move it there. If not, I just leave it as it is.
Life’s too short to spend all day rewriting your code.