Don't Repeat Yourself - Keep Your Code DRY

[!INFO]-
topic: ๐Ÿงน Clean Code
links: Functions should be small and do one thing - they should have a single responsibility
source: Clean Code | Udemy
tags: #permanent-noteย #published

Last Modified: =dateformat(this.file.mtime, "MMM. dd, yyyy - HH:mm")


When writing the same code in multiple places, this does make your code harder to understand and more difficult to maintain because you have to make changes in several places. Whenever you write the same code in multiple places, move it into a new function so that you only have to change it there.