Skip Navigation

Don't DRY Your Code Prematurely

testing.googleblog.com Don't DRY Your Code Prematurely

This is another post in our Code Health series. A version of this post originally appeared in Google bathrooms worldwide as a Google Tes...

Don't DRY Your Code Prematurely

DRY = Don't repeat yourself

29
Hacker News @lemmy.smeargle.fans bot @lemmy.smeargle.fans
BOT
Don't DRY Your Code Prematurely

You're viewing a single thread.

29 comments
  • This is silly. Everyone knows that DRY is telling you that if you do the same sequence of mouse clicks three times in a row, you should spend the day writing a script to automate the task instead of quickly finishing what you were doing by doing the same sequence of clicks a fourth time. If you are supposed to apply it to the code you write, then there'd never be boilerplate-heavy languages like Java.

29 comments