Source Control

Discussion in 'Webmaster Discussion' started by Amateur, Sep 4, 2008.

  1. Amateur

    Amateur New Member

    Lads & Lassies,

    Just wondering how do ye guess manage yer source control for clients source code? Do ye use particular applications. I am currently setting it up at present and like some advice.
  2. paul

    paul Ninja

    Three letters, SVN.
  3. Briask

    Briask New Member

  4. davkell

    davkell New Member

    I've been using tortoiseSVN with Springloops. Found both pretty straightforward to use.
  5. Forbairt

    Forbairt Portfolio Building

    lots and lots of folders :p

    but seriously SVN is the way to go ... old company used CVS ... I wasn't a fan ...
  6. garycocs

    garycocs New Member

    Yes more words I don't know, Source Control????
  7. Forbairt

    Forbairt Portfolio Building

    sweet zombie cheeses ... you're joking ?
  8. garycocs

    garycocs New Member

    Oh dear, I'm guessing this is going to hurt.

    I'm guessing it's managing different versions of your files?
  9. Forbairt

    Forbairt Portfolio Building

    *gets the lube* ... don't worry I'll be gentle ...

    Basically set up a repository .. where you have all your files.

    Check your files in.
    Lets say its the first version of your files ... give the whole group a tag / label.

    Now in future lets say you blow something up ... you can revert your live files to this tag / label

    Now as you go you check files out to edit them ... you make changes you commit the changes to source control. Lets say you mess up ... you've got the previous version. Normally you check in each change you make and you should get into the habit of commenting on it all.

    Is this annoying yes ... is it a godsend in the long run hell yes ...

    you can compare different versions and see what changes you've made ... revert single files back ... and so on ...

    You're happy with the state of things ... check everything in and give it a tag / label ..

    now you can set up some shiny goodness / scripts to update files on your live site and so on ...

    have I missed anything ?
    (this was the basics ... you can get into branching .. locking files and so on as well)
  10. n3tFl0w

    n3tFl0w New Member

    never used source control... probably should look into it.

    Especially since the last project I was working on, I had to pass over to our specialist team of devlopers who were ready to take over the project after I started it (and finished it) before they had time to even think about starting it. Anywho, the last conf call I had with them made me feel like an amateur as they were talking about SVN and CVS and asked what I was using... I was... like... eh... folders with different names on?

    Oh, there was laughter.
  11. Forbairt

    Forbairt Portfolio Building

    Hmm.. does source safe still exist ? (Windows M$ spawn source control app)
  12. garycocs

    garycocs New Member

    Nice one for that, ya use clearcase here at work for that mumbo jumbo was allways thinking it would be handy to do the same for my sites. So what should I be getting started with? Apple Mac here!
  13. Briask

    Briask New Member

    Have a read of, it is a little bit old and out of date but it would give you a reasonable understanding of what source code control is and how to do it.

    Other useful links at at Revision control - Wikipedia, the free encyclopedia.

    To be honest I don't know how anyone works without some sort of version control especially if there is more than one person involved. In d'office we could have 20 or more people on the same project and life would be pure hell without source code control.

    For my own personal work I find it extremly useful when developing as I can track back to previous versions if I mess up somewhere.

    Also I'll generally have the main "trunk" representing what is "live" and then have a branch or two representing the work in progress.

    SVN is thoroughly recommended
  14. garycocs

    garycocs New Member

    What about wordpress sites and other CMS based sites? I take it source control is for personal development?
  15. Forbairt

    Forbairt Portfolio Building

    You make any changes to those wordpress sites ? ... then why not use source control ...

    Take a snapshot of the database as well at the various stages so if you need to fall back you can ..

    of course that is all easier said than done and would get quite time consuming.

    You can choose what files you check in .. so for example if you develop a template ... you can check that in. so that you can always revert.
  16. garycocs

    garycocs New Member

    Ya that's what I'll probably end up doing, snap shots of the template I use and that's about it.

    Would love to see ye're wed design / dev structure / flow chart.

    Never did this stuff in college so there are all ways gaps to what I know!
  17. Forbairt

    Forbairt Portfolio Building

    I'm an electronic engineer ... we never did this stuff in college either :D

    if you want to know about ASIC design ... Strength of materials ... thermo dynamics .... Signals ... or my personal favourite my final year project analysis of EMG readings using Wavelet transforms ... I'm your only man :D

    College isn't about learning anything useful in later life ... its about getting a qualification so that companies can justify paying you large sums of money when really they coudl hire a 16 year old to do that same ...

    I'm having an angry day .. (or maybe its the NIN playing in the background)
  18. garycocs

    garycocs New Member

    You get paid large sums of money as an electronic engineer??? HAHA

    Ya did elec eng in ucc myself, if you need to know anything about eh . . . . . . . ya moving on!!!!

    You dev structure?


    Apple Mac,
    Develop in mammp folder using textedit
    Most testing can be done locally
    Google maps and the likes have to upload the pages
    Making changes to existing sites
    Add a 2 to the end of the file and run tests, i.e. index2.php would be and advanced version
    When I have debugged it, replace the index.php with the index2.php

    I'm sure this is all very backward compared to some of ye!
  19. Forbairt

    Forbairt Portfolio Building

    never thought about getting an API key for localhost ?
  20. garycocs

    garycocs New Member

    haha BALLS!!!!

Share This Page