All Code Is Good

Friday, May 5, 2006

… 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.


Comments
Eric D. Burdo Friday, May 5, 2006
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.
Dennis Gorelik Friday, May 5, 2006
Do you have any mechanism to search for your old code in your huge repository
scott Saturday, May 6, 2006
Dennis:

I've found the desktop search programs, like the MSN product, do a pretty good job indexing source code files.
gravatar ananthi Thursday, January 28, 2010
could u send any source code example regrding vault
send to my mail id
Comments are now closed.
by K. Scott Allen K.Scott Allen
My Pluralsight Courses
The Podcast!