Author Topic: Inventing version control  (Read 557 times)

Offline Harkins

  • Level 28
  • **
  • Posts: 424
  • Reputation: +11/-2
  • Coder, blogger, entrepreneur.
    • View Profile
    • Push CX - Blog
Inventing version control
« on: February 04, 2010, 12:49:49 AM »
I was reading through the blog of one of the GitHub cofounders and an article caught my eye because it described a process very similar to the one that forum posters here have said they use:

Quote
You start your project in a directory named working. As you code, you try to write one feature at a time. When you complete a self-contained portion of a feature, you make sure that all your files are saved and then make a copy of the entire working directory, giving it the name snapshot-0. After you perform this copy operation, you make sure to never again change the code files in the new directory. After the next chunk of work, you perform another copy, only this time the new directory gets the name snapshot-1, and so on.

What's the point? Well, he doesn't insult anyone for using a process like this. Instead, he sees it as the first step toward the design of a distributed version control system. A DVCS is software to run this process, to encapsulate all the best practices people have learned from decades of coding and collaborating in an automatic system.

Quote
The following parable will take you on a journey through the creation of a Git-like system from the ground up. Understanding the concepts presented here will be the most valuable thing you can do to prepare yourself to harness the full power of Git. The concepts themselves are quite simple, but allow for an amazing wealth of functionality to spring into existence. Read this parable all the way through and you should have very little trouble mastering the various Git commands and wielding the awesome power that Git makes available to you.

For anybody still on the fence about whether version control is worthwhile, give The Git Parable a read to find out why most developers consider it a necessity. If it gets you curious to learn git, the free book Pro Git is the best thing to read next.

Visit #bbg on irc.freenode.net to talk browser games anytime.

Offline JGadrow

  • Level 35
  • **
  • Posts: 1,133
  • Reputation: +23/-2
    • View Profile
Re: Inventing version control
« Reply #1 on: February 04, 2010, 08:23:38 AM »
Agreed. Version control is extremely beneficial. Sure, it forces you to take an extra step but you no longer have to worry about breaking something forever and ever because you can't remember how it was implemented. No more production code with code comments moldering away from some development cycle long forgotten.

I can't wait until my employer gives me the free time to get our developers a repository setup and train them in its usage! It's already been agreed that we're moving to a repository (we're going with SVN since it's easy for the other developers to learn and once you have the basics it's easier to pick up a more advanced repository, also, with our hosting provider it comes pre-installed so that's another short-term win).
Idiocy - Never underestimate the power of stupid people in large groups.


 


SimplePortal 2.3.3 © 2008-2010, SimplePortal