I like hearing caveats to common recommendations. For Don't Repeat Yourself (DRY), we have the Rule of Three. 

The rule of three: if you use it once, don't worry about making it reusable elsewhere. If you use it twice, just copy/paste. When you use it the third time, extract it into its an independent, reusable component, like a function, module or package.

· · Web · 0 · 0 · 0
Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!