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

I 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.



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

Search: