News for hackers. Stuff that matters.
Re:If you can't remember why onions are in there, take 'em out. by polymatter on Friday October 21, 2011 @11:38AM (#3140225)
I think you mean this as part of the investigation in what this code does.

That is, after setting up a test/dummy system, you remove the code, run your tests and try to break it. Perhaps sticking in breakpoints or print lines or whatever..

I doubt you really mean to experiment on the business-critical live system.

Thats unlikely to be very effective anyway. The most obscure code is often a bug fix for some really obscure bugs. Maybe it fixes some weird bug in Swedish XP SP1, or something which you don't find just by removing it and testing. Situation depending, you will need to actually read and understand the code and investigate properly.

Re:If you can't remember why onions are in there, take 'em out. by yxhuvud on Friday October 21, 2011 @01:47PM (#3140840)
Obviously, it is not a tactic to use on a live production system. On the other hand, no programming at all at a live system is the prudent way of doing it.

Good test coverage help a lot here though - remove something and you'll get a set of failing tests to investigate.