Glossary: Software Design Patterns in JavaScript
Rule of three
Write the code the first time, notice the repeat the second time, and extract the shared part the third time, when you know what really varies.
Glossary: Software Design Patterns in JavaScript
Write the code the first time, notice the repeat the second time, and extract the shared part the third time, when you know what really varies.