3 ms·
By "rule of three" you mean if code exists three or more times you deduplicate? Because wikipedia says this about rule of three: [https://en.wikipedia.org/wiki/
by miclill 8y ago
By "rule of three" you mean if code exists three or more times you deduplicate? Because wikipedia says this about rule of three: [https://en.wikipedia.org/wiki/Rule_of_three_(writing) https://en.wikipedia.org/wiki/Rule_of_three_(writing)]
- TravelAndFood 8y agoYes, like if you see the same few lines of code in two different places, you leave it, but in three different places, you make a separate function.