All Code Is Good

… even the code that doesn’t work.

I use SourceGear Vault for personal work and experiments. SourceGear is free for a single user (see the last question in the Vault FAQ).

When an experiment doesn’t work out I have a tendency to delete and purge the project from source control. I don’t want my repository cluttered with broken junk. Invariably, 3 months later I’ll run into a scenario I’ve tried before, but I don’t have the code because my first attempt didn’t work. I’m always wishing I had the old code to prove that an approach doesn’t work. Even worse is when I’ve learned something new that might have gotten the old code working.

Now I’m a code packrat. I stuff broken projects into basement shoeboxes hoping the projects will be worth something someday.

Print | posted @ Friday, May 05, 2006 4:03 AM

Comments on this entry:

Gravatar # re: All Code Is Good
by Eric D. Burdo at 5/5/2006 2:15 PM

I am the same way... I keep around old projects just for code samples (or proof that it didn't work).

And I use the single user edition of Vault also... very nice program.
  
Gravatar # re: All Code Is Good
by Dennis Gorelik at 5/5/2006 6:38 PM

Do you have any mechanism to search for your old code in your huge repository
  
Gravatar # re: All Code Is Good
by scott at 5/6/2006 10:10 PM

Dennis:

I've found the desktop search programs, like the MSN product, do a pretty good job indexing source code files.
  
Gravatar # re: All Code Is Good
by ananthi at 1/28/2010 2:30 AM

could u send any source code example regrding vault
send to my mail id
  
Comments have been closed on this topic.
Scott Allen
Posts - 869
Comments - 4493
Stories - 14