3 ms·
Your database is just about the worst place in the world to be strict about DRY. It turns out, your model and validations don't actually prevent broken data. Th
by rosser 12y ago
Your database is just about the worst place in the world to be strict about DRY. It turns out, your model and validations don't actually prevent broken data. They just make you think you're safe from it...
...until your broken data starts biting you and your customers in places that don't typically see sunlight.
- crdoconnor 12y ago>Your database is just about the worst place in the world to be strict about DRY. There are no places in any code base at all where it doesn't pay to be rigorous about DRY. >It turns out, your model and validations don't actually prevent broken data. A) DRY isn't about preventing broken data. B) Validations are for preventing broken data. That's what they do.