3 ms·
I read this, and immediately thought of one of my maxims... "Data duplication is the source of all bugs".
by beat 7y ago
I read this, and immediately thought of one of my maxims... "Data duplication is the source of all bugs".
- crdrost 7y agoYour maxim is already in common parlance as Karlton’s principle. “There are only two hard things in computer science: cache invalidation and naming things.” (Some add “and off-by-one errors” but arguably that is the same problem of some ‘cache’ being ‘invalid’ and never suitably repopulated…) With that said downstream caches are often solid, if one treats them as the source of truth. “We just pretend this has not happened until we see it.” Same thing with denormalized data in a database, sometimes that's the only way to build the appropriate index which speeds things up.
- beat 7y agoYeah, I wrote about that exact thing a while back. https://hackernoon.com/the-two-hard-problems-in-computer-science-2a42ec008eee https://hackernoon.com/the-two-hard-problems-in-computer-sci...