Sep 21 2007

Subversion to the Rescue

Published by Joe Purnell at 4:49 pm under Web Development

It just isn’t enough to have the best tools in the world if you don’t know how to use them.  Consider Visual Source Safe; a wonderful product in its own right.  But I, like a novice dude-ranch tourist facing an unbroken thoroughbred, was left frustrated by its wild side to take over the read/write properties of code and markup files.  What to do, what to do. 

You can only scratch your noggin so much in your futile attempt to google “Best-practice vss” before you give up the search or lose your hair.  I wasn’t sure I was using the source safe the right way, and training on a tight deadline was out of the question at this point.  I needed the version control to allow me to work on a local copy of my files and then port them over the network to another development machine and have it work the first time.  The trouble was, the references never carried over.  In hind sight, I should have known to save the projects in a uniform directory structure for that to take place, but the best practices of that were no where to be found.  I only found out about that little bit of information from a coworker who was extremely well versed in his own version control skills.  The problem though, was that his version control of choice was not Visual Source Safe, but a set of open source tools.

Enter Ankh and Tortoise, two open source subversion tools that our php guru carries the banner for, much to the chagrin of my pro-Microsoft traits.  As an aside, one can only endure so much frustration, sticking up for Microsoft’s premier version control product against a banner wielding fanatic, when one has only enough information and training in it to be a little bit dangerous.  I had a wild thoroughbred, he a donkey.  Mine was a better bet to win the race if you were a jockey.  His was a better worker under any rider, let alone his better experience. 

I gave in, we made the switch and so far this donkey is a powerhouse. 

You know, I think I’ll start a list of my own best practices.  Please feel free to add your own to help out those aspiring jockeys out there.  So in brief, here are some best practices I would recommend with Visual Source Safe

1. If you’re going to develop using Visual Studio.net on a local system and share the VSS as a team, I recommend you set up a standard directory structure across the board.  Everyone put their projects in c:\projects\[name of website].  Then when you check in the files the references will all match when someone across the building, checks out your code for editing.

2. … add your own

 Best wishes,

Joe 

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • LinkedIn
  • Live
  • NewsVine
  • Technorati
  • StumbleUpon
  • description

Trackback URI | Comments RSS

Leave a Reply