views:

121

answers:

3

Hello, I'm a beginner so if there is a terminology for what I'm doing I don't know how to search for it. So forgive me if this has been asked before. So here is what I do. Before I make any major code changes, I make a copy of the projects folder and call it "project v6" for example. Then if I really mess things up and cant find a way to undo it, i just go back to the previous folder. This has been working well enough for me but sometimes I forget to do this have have to take 2 steps back. Is there an easier way to do this than the way I am now?

Thanks

+6  A: 

What you're looking for is revision/source control software.

http://en.wikipedia.org/wiki/Revision_control

Luis
See also http://betterexplained.com/articles/a-visual-guide-to-version-control/
Jakub Narębski
+6  A: 

There are many source control tools, which keeps track of all this stuff. Git, subversion, cvs (used wikipedia links, which explains each with more detail. This can be done much more easily once you get used to them.

In both there is commit what you've done to a server (which may be your own machine). But you can store your code somewhere else (so you don't lose everything, in case your hard disk fails or something like that). Google Code is a good example.

Git - harder to use, but very powerful (more used when there are lots of people working on the same project, and even the same file sometimes), much easier to deal with branches and stuff like that (if you don't know what that is, so you probably don't need it yet)

svn (subversion) and cvs - simpler to use, with fewer resources available. Probably enough for your needs

Samuel Carrijo
With subversion it can be done more easily and you don't have to get used to it. You just have to commit your changes once in a while. Daily is the typical suggestion.
S.Lott
Don't use CVS: it is seriously outdated (but still better than not using version control).
Jakub Narębski
+1  A: 

I absolutely agree you need to start using a source control system. Even if for no other reason than to ingrain good work habits, you will be required at some point to use a source control system.

Having said, if your IDE is Visual Studio (non-express editions) you can use an addins to:

the empirical programmer