Source Control

Advert test
#1
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.
 

Forbairt

Portfolio Building
#9
Oh dear, I'm guessing this is going to hurt.

I'm guessing it's managing different versions of your files?
*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
never used source control... probably should look into it.

Especially since the last vb.net 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.
 

Forbairt

Portfolio Building
#11
never used source control... probably should look into it.

Especially since the last vb.net 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.
Hmm.. does source safe still exist ? (Windows M$ spawn source control app)
 
#12
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
Have a read of http://www.ericsink.com/scm/scm_intro.html, 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 http://en.wikipedia.org/wiki/Subversion_(software) http://subversion.tigris.org/
 

Forbairt

Portfolio Building
#15
What about wordpress sites and other CMS based sites? I take it source control is for personal development?
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
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!
 

Forbairt

Portfolio Building
#17
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!
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
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?

Mine?

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!
 
Top