1
0 Comments

The first rule of the DRY club is…

https://youtube.com/shorts/OPC86c5p7fA

The full video is here: https://youtu.be/Lpaedo1yWQk


If you’re in doubt, don’t use DRY. Copy-paste is often better.
Use DRY when you truly do repeat. Not when things are similar. You can usually see this if there are if statements in the DRY entity
Only use DRY when you’re repeating yourself at least 4 times
They’re not perfect,
so take them with a big grain of salt

Do this instead
Before you even start using the DRY software principle
you should probably just make utility functions

submitted this linkon June 19, 2024