My path to source code management

Source: Internet
Author: User
Tags perforce

If you areProgramAnd exactly writesCodeIf you are interested in Ding, I am afraid you will have some code of your own. This can be an exercise, a tool for solving problems, or a purely interest-oriented research ~~~ You also want to have a better way to manage them.

After graduation, I have been working as a part-time website and selling space domain names. On his server a few days ago, "Kiang" came to a SVN repository, I am very happy-my code has finally embarked on the path of "Saving and accessing more. In fact, I have also searched for such services on the Internet before. Some of them are limited in space and speed. They will be put on hold in a few days, such as unfuddle.com, Bitbucket, or GitHub. During this time, I am sorting out some codes and recalling my source code management methods over the years.

 

Files: manual management

This was in the college age. At that time, no matter whether I was writing some code or helping my teachers do some projects, I didn't have the idea of using version management tools. In fact, I didn't even know this concept. So now I open the code I wrote in college, and often can see xxx1.0, xxx.1.1 and other sub-directories. Yes. At that time, I used this method to save the available version of the code. I have also written a batch to automatically back up data on a daily basis. Without knowing the version management tool, it does not mean that I have no awareness of version management. Only one person can modify the code. This simple backup method works.

VSS: Although automated, It's really ugly.

Some internal projects in the company are mainly managed by VSS. When we first entered the company, we did a lot of internal projects, and the most used was VSS. At that time, this was a brand new concept and I felt quite advanced-I remember talking to my colleagues about how the differences between each version were saved. The introduction of VSS on the Wiki points out many shortcomings: for example, the speed is too slow and unstable, which may cause file destruction. I think this should be the reason why VSS gradually fell. However, as I said at the time, because it was an internal server and a small project, I basically didn't feel these feelings. I just thought the interface was too ugly, especially the diff.

I used to build a VSS server so that I could manage my code well. However, I want to access this kind of code both in my company and at home, but the reality is that I am either in the house or in the company, it is very inconvenient, coupled with the sales of VSS, it will not continue to use.

Perforce: very powerful

The company's formal project uses perforce (of course, the internal project also uses perforce). This tool is indeed powerful, and it is said that 5000 people in 0.32 million companies/organizations are using it, our company is also listed as follows:

This should at least prove one thing: Our company is not using piracy ~~~~

The more you use it, the deeper you use it, the more powerful it is, And the commands exposed by it provide us with great convenience to write some automated scripts. Used last year to perform large-scale reconstruction of the projectPerl + P4 commandsSolved many problems.

Perforce is a commercial software, but you can also use it for free when the number of users is limited: the limit is 2 users, 5 workspace. Think about it. If you use it by yourself, there are too many two users. In fact, perforce is a great deal. Some individuals and small teams are not their target customers. I will allow you to use them for free without losing anything, but in the future, your team will become bigger and Perforce will become familiar, and you may not buy them-this is called to cultivate potential customer groups.

At that time, in order to better manage some scripts and tools, the company put an inconspicuous directory on the company's perforce server on an obsolete branch as my base camp, mainly to manage some work tools, however, some codes that you are interested in writing are easy to manage and take some time. But then I thought it was not appropriate. Let's just remove it.

In fact, if you do not require multiple accesses, it is good to use a server with a perforce mounted on your own machine.

SVN: multiple open-source projects

SVN is a famous tool, probably because it is closely related to open-source projects. Now the project on SourceForge basically uses it. SVN is rarely used. In the past, it was mainly used for obtainingSource code. Because my blog is sent to my classmate's server, I have been thinking about building SVN on his server over the past two days. When I asked, I found that he had already had it, it is mainly used for some projects. So he was cheeky and asked him to draw a piece for me. In fact, I wanted to configure it myself. I also studied the following documents before. However, since it is ready-made, it is easy. I used the visualsvn server, which is indeed much more convenient to configure.

In fact, various large space providers can consider providing services in this area, not necessarily just selling space, maybe there will be a good market.

These days, the speed is fast and the capacity is not limited ~~~ Thank you very much for your sponsorship, including the blog space. By the way, you can make an advertisement for him. If you want to create an independent blog or something like that, you can consider this: Beijing extension technology.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.