PHP: it is strongly recommended that you learn how to use SVN while learning PHP.

Source: Internet
Author: User

I believe that many new users focus on PHP development, html code, database operations, and related development tools when they are new to PHP, the learning version control software is often ignored. The reason why I raised this question in the newbie district today is that I want to normalize the development of php as a coder career and avoid detours, I have already passed. Here I will share my experience. I hope you will have some experiences and avoid detours.

1. Why should we use version control?

It can be said that some small companies, or some companies that are not particularly dependent on technology, lack technical management talents due to their own limitations, developers often have great limitations during development. In addition to manpower and cycle restrictions, many of them do not adopt version control. For example, in my previous company, everyone is developing on a test server and debugging on the server. What's the problem? First, it is very likely that several of us are not aware of each other while modifying a page. In this way, the person who saves the changes may overwrite the changes made by the former. If no backup is made before, the result is terrible. To avoid this, you have to wait for others to finish the change. This means that development cannot perform parallel operations. Second, when you make a lot of changes, due to the changes in requirements, we are likely to change the code back to the previous look, assuming there are only 20 lines of code, OK, you can manually modify it by memory, what about 2000 rows? Do you remember what you changed? Even worse, I have seen a project result test server accidentally deleted data, and two months of hard work has been wasted. With version control, we can completely solve the above problems.

2. What is version control?

To put it simply, version control is a time machine that records every change you make to the file. In this way, even if you have changed the file for a few months, the boss says no, as you did in the past, you won't go crazy either. simply restore the version to get everything done with tukiz35. For more information, see related documents.

3. Why SVN?

The current version control software mainly includes ms vss, open-source CVS and SVN, and zendIDE comes with CVS. However, CVS has many limitations. For example, it only records the versions of a single file, files cannot be deleted, and version control is added. To address the limitations of CVS, SVN emerged. At the same time, SVN can be driven by apache and updated directly through http. This combination is perfect. As for VSS, it is difficult to use and inefficient, and it is not cross-platform. Therefore, SVN is strongly recommended. The SVN debugging environment is the client of each development member. Each member can directly obtain new files and changes of other members through repository updates. If multiple users modify the same code, a conflict prompt is displayed, when a problem occurs, you can easily find out Who modified the code. In this way, parallel development is very efficient, and only good backup code can be performed.

After talking about the advantages of SVN, I only hope that new users can develop it according to the standard process as much as possible, which is very good for their own development. Finally, I wish you a pleasant learning experience.
 
Note: transfer from Network

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.