Avoid premature over-optimization of your code. Always remember the Rule Of Three

By HelloWorld PC
ยท1 min read
Avoid premature over-optimization of your code. Always remember the Rule Of Three

Avoid premature over-optimization of your code!

Always remember the "Rule Of Three":

  • Does code exist that looks identical?
  • Does the code repeat the same knowledge and logic?
  • If yes, wait until you have at least three code duplicates before you make an abstraction ๐Ÿ˜Ž

Share it:

facebooktwitterlinkedin