Development Software
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementDevelopment Software

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old April 8th, 2008, 09:08 AM
andyg1 andyg1 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 209 andyg1 User rank is Corporal (100 - 500 Reputation Level)andyg1 User rank is Corporal (100 - 500 Reputation Level)andyg1 User rank is Corporal (100 - 500 Reputation Level)andyg1 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 1 h 15 m 38 sec
Reputation Power: 9
Theory behind version control

Guys/girls,
I have been developing websites by myself for a few years and haven't really had the need for version control because I kept regular backups and I was the only person working on files. I would test locally on my own machine running Apache and then upload via FTP once the work was ready to roll out.

Now I work in a team of three and keeping on top of all the different versions is becoming more difficult. Each one of us has been working in the manner described above, and every now and then we will overwrite each others changes.

I am looking at whether version control is the answer. Having read the basics I wanted to make sure my understanding of version control (esp. CVS or Subversion) was correct. I get the impression that the version control software keeps all the files, plus information about the edits and editors, on a server. You check out the files, edit and then commit the changes. But the version control repository is not an actually working web server?? - it is just a place to store the files?? To make those changes work on a live server you would have to export the files from the version control repository and then upload them to the live webserver...?
Is my understanding correct?

Ideally the solution I wanted was to be able to check files out of a working web server and upload them again once edited, checking for conflicts etc. The way I understand version control is that it adds an extra step. It seems an inconvenience to export those changes and then to put them onto a live server.

Is my understanding correct? Is there a better solution? I have also heard of application installers, such as Phing, that make installing projects easier - would that be any use?

Many thanks in advance for your responses.
Andy
__________________
Time isn't wasted if you're wasted all the time

Reply With Quote
  #2  
Old April 10th, 2008, 01:06 AM
jwdonahue jwdonahue is offline
Bellevue WA, USA
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: May 2004
Location: Bellevue Washington, USA
Posts: 1,036 jwdonahue User rank is Second Lieutenant (5000 - 10000 Reputation Level)jwdonahue User rank is Second Lieutenant (5000 - 10000 Reputation Level)jwdonahue User rank is Second Lieutenant (5000 - 10000 Reputation Level)jwdonahue User rank is Second Lieutenant (5000 - 10000 Reputation Level)jwdonahue User rank is Second Lieutenant (5000 - 10000 Reputation Level)jwdonahue User rank is Second Lieutenant (5000 - 10000 Reputation Level)jwdonahue User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 6 Days 22 h 24 m 48 sec
Reputation Power: 66
Version control is just one of the key elements of the "engineering" part of software development. You should never write the frist line of code without a good version control system. Yours was adequate for a single user but now you have exceeded its capabilities you should upgrade to something along the lines of CVS or SubVersion (IMHO).

Yes there's an extra step or two, but it allows for concurrent work to continue un-interrupted and facilitates coordination. You could have a change that needs to go to the web site emediately while your cohorts are working on changes that won't be ready until next month. You check-in your work, label it and then check out against that label. Test and if no errors upload to the web site. You note in your logs "Uploaded <label> YYYY/MM/DD fix bug #nnnn". Then you buddies are ready to check-in and they discover you've made some changes since they checked the code out, so they have to merge those changes into theirs and then the process repeats.

You could have several planned releases in progress at the same time, in various stages of development from code in progress to test/recode cycles and this allows you to keep track of the code state at each milestone and which milestones got shipped to your server.
__________________
It's not always a matter of what you can do with a language, but whether you should. [JwD]

Reply With Quote
  #3  
Old April 10th, 2008, 11:20 AM
fishtoprecords's Avatar
fishtoprecords fishtoprecords is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Sep 2007
Location: outside Washington DC
Posts: 610 fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 15 h 24 m 48 sec
Reputation Power: 177
your basic understanding is correct.

CVS and SVN generally do not have a concept of 'check out' a file, you get the latest version, make local changes, and then check them in. Some tools do use a checkout/lock model.

I can not imagine having more than one developer on a project without source control. I use it for all of my work, even solo projects.

The ability to easily look at code from last month is priceless.

These days I use SVN (aka subversion) as it installs on nearly any server and works on all known clients.

Its a little better than CVS, IMHO. But using any package is so much better than using none that any differences between packages is trivial.

For developers on Windows, TortoisSVN
http://tortoisesvn.tigris.org/
is highly valuable

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementDevelopment Software > Theory behind version control


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway