The problem with DRY (don’t repeat yourself) is that developers push it past its breaking point by introducing layers of indirection that are either confusing or flat-out wrong.

Sometimes a little copypasta is not only okay, it’s better.
Follow

@djmoch the problem is that the phrasing is ambiguous, and people take it to mean "code that looks the same can never be written more than once." Really, DRY is about intentions and relationships. Sometimes the same looking code is actually unrelated, and if you were to update one instance, you would *not* want to update the other. This kind of instance is where you're talking about overdoing it.

Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!