Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I’ve found SPoT (single point of truth) a better maxim than DRY

I totally agree. For example having 5 variables that are all the same value but mean very different things is good. Combining them to one variable would be "DRY" but would defeat separations of concern. With variables its obvious but the same applies to more complex concepts like functions, classes, programs to a degree.

It's fine to share code across abstractions but you gotta make sure that it doesn't end up tying these things too much together just for the cause of DRY.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: