3 ms·
Eh, think of it like a cache. "You shouldn't keep that in memory, you can get it from disk." You can lean in that direction, but it doesn't make sense as a ha
by dllthomas 11y ago
Eh, think of it like a cache. "You shouldn't keep that in memory, you can get it from disk." You can lean in that direction, but it doesn't make sense as a hard rule.
- MaulingMonkey 11y agoI use cache style metrics for killing code too. E.g. I might start a rewrite with: #if BLEEDING_EDGE ...new code... #else ...old code... #endif Eventually moving the old code into a further removed #if 0 as the remaining bugs taper off (i.e. I'll just fix them instead of reverting back to the old code for a milestone) before deleting the old code outright. Much like evicting data from L1, L2, L3, and finally main memory. Sometimes I'll even write explicit comments to delete code by a certain date.