The software engineering rule of 3

from blog Home on Erik Bernhardsson, | ↗ original
Here's a dumb extremely accurate rule I'm postulating* for software engineering projects: *you need at least 3 examples before you solve the right problem*. This is what I've noticed: Don't factor out shared code between two classes.