All code is buggy until tested innocent

Here's an amusing tool: Guantanamo is a tool that can delete all code lines that are not covered by tests. It can also delete code that is not covered by the application itself.

(Via Andrew Birkett)

Posted on October 18, 2004 11:50 AM
More testing articles

Comments

Heh. You could combine this with the idea that Ben keeps throwing out, of a bot to check in random mutations to the codebase (his idea is that there's too much code we don't look at; this would force us to look at it when it breaks). The result: a bot that randomly mutates code that isn't tested. Then, if it doesn't get noticed and changed back within a couple of months, it obviously wasn't important, so the bot deletes it.

Personally, of course, I've seen too many compiler errors to have that much faith in code coverage. When gcc tells me that a function reaches the end without returning a value, and I can see it's wrong, why should I believe a coverage checker when it makes the much more difficult claim that a line of code is never used? I could take it as a guideline, but not as proof.

Posted by: John Stracke at October 19, 2004 09:04 PM

Pretty good post. I just found your site and wanted to say that I have really enjoyed browsing your posts. In any case I’ll be subscribing to your blog and I hope you post again soon!

Posted by: Classic Cardy Ugg Boots at October 31, 2009 12:50 AM

We are the best online sales for the china wholesale . Here you can have a large of choices of kinds Ugg Boots,Converse Shoes,Timberland Boots,puma shoes,Nike Shox Shoes ,Nike Dunk SB Shoes,Nike Air Max,Links Of London,Tiffany Jewelry,Dior Handbags?,jimmy choo handbags ,Cartier Watches, 8GB Mp4 Players,Bluetooth Car DVDs. All our cheap online cheap goods are high quality and original packages, and best service. We offer our customers the best service, 7 days arrive at your door.Enjoy your easy and happy shopping with us.

Posted by: cheap goods sale. at November 20, 2009 12:34 AM

People all over the world know the abercrombie and fitch,but not everyone really knows how fashion the abercrombie is,hollister is the Legend maker. Everybody wears the hollister clothing would be the abercrombie mens and the abercrombie womens, if you want know you can search the Ruehl No.925 or abercrombie outlet in the www.google.com .

Posted by: fitch at November 24, 2009 09:31 PM

Laptop Battery Laptop Battery Laptop Batteries
Laptop Batteries discount laptop battery
discount laptop battery
notebook battery notebook battery
computer battery computer battery
replacement laptop battery replacement laptop battery
notebook batteries notebook batteries

Posted by: Laptop Battery at November 24, 2009 10:38 PM

In order to welcome the approaching Christmas and to thank for the customer,there are amazing ugg boots sale promotions on our company.Once you buy one of ugg 30th anniversary,ugg nightfall,ugg coquette,ugg lo pro button or ugg knightsbridge other ugg boots on our website, we will give you a gift for free. http://www.uggboots4buy.com/

Posted by: ugg knightsbridge at December 1, 2009 03:49 AM

If a man join together to pursuit knowledge, no one can take it from him.cheap nfl jersys Books are to human beings which as nba jerseys sale emory to the individuanl nhl Jerseys.We cannot change anything mlb jerseys unless we learn and accept it, Damn does not liberate it, it oppresses.A classic adidas jerseys book which people praise but don't read.A man dies still if he has done nothing, as one who has done football child jerseys much.Education is something which remains ofter one has forgotten everything football jerseys he learned in school.Education is something remains ofter one has forgotten everything he learned in school.http://www.nfljerseymlb.com/

Posted by: discount nfl jersey at December 1, 2009 03:54 AM
Post a comment









Remember info?




Prove you're human. Type "human":