DRY stands for Don't Repeat Yourself, meaning you shouldn't type code more than once. The principle states: "Every piece of logic must have a single unambiguous representation within a system" I'm going to demonstrate some simple use-cases, but they should give you a good understanding of what DRY means.
6 Comments
Sort: