DRY vs RYE

DRY is a good first-pass rule of thumb, but RYE is optimal. “Repeat yourself efficiently” Examples: Add a data-attr to an HTML element so that some data can be read from it using $elem.data() rather than a longer jQuery selector chain $elem.closest(‘.thing’).find(‘otherthing’).val() Benefits of concision, readability, and performance Database normalization Foreign key relationships are duplicate … Read more DRY vs RYE