1 Feb 2003 12:05
RE: Seeking Crufty Code
Rob Myers <Rob.Myers <at> mindfulsoftware.com>
2003-02-01 11:05:30 GMT
2003-02-01 11:05:30 GMT
Alex, Joshua may have a perfect example for you. We used it in his Testing & Refactoring Workshop, and it has every single code smell from Fowler's book. It was written entirely test-first, so it has complete test coverage. And you wouldn't believe how hard it was to write bad code using TDD! Why is it so easy without tests? Who would ever write another line of production code without a failing test? (Why do I get so chatty at 2AM?) I'm not sure whether or not the snippet meets your third requirement, but it never hurts to ask, yes? Sincerely, Rob > -----Original Message----- > From: Alex Chaffee / Purple Technology [mailto:alex <at> jguru.com] > Sent: Wednesday, January 22, 2003 3:24 PM > To: refactoring list > Subject: [refactoring] Seeking Crufty Code > > > I'm running an open refactoring workshop next week, and I'm looking > for source code for us to refactor. It should be > > * messy, but probably not a complete disaster > > * fairly well unit tested (so we can tell if we broke it)(Continue reading)
RSS Feed