I am working on a web site project with a friend of mine. Part of that project is writing some programs. I'd like to be able to work together on one programming project but we are rarely online at the same time. Are there any web sites or services that offer a way that I could, for example, write a bunch of code and then save it and go to bed or whatever. THen he can get on later and continue to code it or edit it or whatever and save the changes. One important thing would be that it could keep track of "version history" so we could always roll back if we did not like something. I just think this would make it much easier for us to write these programs. Something like pastebin might work but it would be much better if it were made just for coding, like have options for syntax and things based on language. anyway, any tips would be appreciated.
Mercurial is a pretty solid version control package. 1. Download it at http://mercurial.selenic.com 2. Post it on http://bitbucket.org There's also Git too. 1. Download it at http://git-scm.com 2. Post it on http://github.com I feel Mercurial has a bit less of a learning curve and has slightly better Windows support but both options are viable.
There are plenty of software configuration management tools out there but if there is just two of you then a more simple solution with a simple checkout process would be sufficient I imagine. Remember that they key to dividing programming between people is the documentation before hand so that you know what the classes are going to be called, what entities they are anticipating/ outputing etc.