by shuntress · 4y ago · 0 comments
Junior devs just repeat themselves because they don't know better.
Middle devs rush into an incomplete abstraction by overzealously not-repeating-themselves.
Senior devs just repeat themselves because they know they don't understand what it would take to abstract out the solution.
Like everything... "It Depends". Don't Repeat Yourself Too Much.
But you are right: applying DRY between tasks requires good judgement, and sometimes it's best to just copy some similar code around than to prematurely invent an abstraction.