Re: A new lease on life for Perl Refactoring
On Mon, Sep 17, 2001 at 12:29:56AM -0600, chromatic wrote: > Ideally, there'd also be a comprehensive test suite to run after the > refactoring to see what breaks. If the browser doesn't catch > everything, and if the test suite is kept at 100% pass, and if the > coverage is close enough to comprehensive, it ought to catch almost > everything else. Well, yeah. Step one of refactoring is to have a good test suite. Refactor, make test. Refactor, make test. etc... > There's a chapter in Extreme Programming Examined that discusses the > Smalltalk refactoring browser. They worked up some sort of change > object that can be applied, reverted, and reapplied as necessary. > Any change is represented with one of these objects. Smalltalk is so seeped in the "everything is an object" that this sort of thing is a sneeze for them. One of the examples in the Squeak book is a drawing program where every individual thing drawn is a seperate object. Forget Photoshop layers, the image never gets flattened until you actually save it as a jpeg (or whatever). So I can scribble all over your masterpiece and you can just delete my individual scribblings by popping the object stack. For us, we can just use RCS. Tag each check-in with info about what we refactored. So a refactoring run would go... Refactor, check-in, refactor, check-in, refactor, check-in, test. With a simple "diffs/refactorings since last good test" command. -- Michael G. Schwern <[EMAIL PROTECTED]>http://www.pobox.com/~schwern/ Perl6 Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One Tasty, yet morally ambiguous.
Wiki Wiki not Wiki Working
So I had this bright idea. Test::FAQ and Test::Tutorial are just sort of sitting here on my hard drive not doing much of anything. Why not put them up as a Wiki and then everyone else can sort of just play around with it and we'll see what happens. Unfortunately, I can't get the damned Wiki working. I've tried the QuickiWiki, which mysteriously refuses to write a file larger than 10K, and ClusterWiki, which is giving me fits trying to get it configured. If anyone has experience with this sort of thing, set up a perl-qa Wiki and we can get started. -- Michael G. Schwern <[EMAIL PROTECTED]>http://www.pobox.com/~schwern/ Perl6 Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One my mother once said "never eat paste my darling" would that I heeded -- stimps
Wiki Wiki Working
Got the Wiki working, it seems Opera is at fault, being unable to handle anything more than 10K in a POST. Unfortunately, I don't seem to have anything else servicable. http://www.pobox.com/~schwern/cgi-bin/perl-qa-wiki.cgi Collaborate! Test::Tutorial and Test::FAQ are up there, let's see if we can fill them in. If someone would be so kind as to fill in TestTutorial from the latest version of Test::Tutorial? -- Michael G. Schwern <[EMAIL PROTECTED]>http://www.pobox.com/~schwern/ Perl6 Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One I SEE A RED ASS AND I WANT TO PASTE IT BLACK WON'T OPEN ANYMORE I PASTED UP THE CRACK -- swansong
Re: Wiki Wiki Working
In perl.qa, you wrote: > >If someone would be so kind as to fill in TestTutorial from the latest >version of Test::Tutorial? Done. -- Kirrily 'Skud' Robert - [EMAIL PROTECTED] - http://infotrope.net/ "Verbogeny is one of the pleasurettes of a creatific thinkerizer." -- Peter da Silva