Repeat Yourself
One of the most repeated pieces of advice throughout my career in software has been “don’t repeat yourself,” also known as the DRY principle.
For the longest time, I took that at face value, never questioning its validity.
That was until I saw actual experts write code: they copy code all the time1.
I realized that repeating yourself has a few great benefits.
评论
?
参与讨论