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 ๐