Saturday, October 21, 2017

Make use of Subversion (SVN)

NOTE : THIS IS AN UNFINISHED ARTICLE. PLEASE EXPECT ERRORS

What is version control?
What is SVN?
Why you need a version controller?
How to use a version controller?
My intrest on start this blog is to discuss about How to use a version controller. But to give more clarity, I have started with some concepts as well.
A version controller is a tool that manages the versioning of your source code(my point is versioning the source code; there are several tools that manages other stuff also; eg. Document version control).
This enables you to go privious and forward in your change history.
Each change commit will be given a unique version.
When a version controler is useful. Does it useful for a single man project; a univercity project. 
I have experiance of deleting source code and searching for a backup. Situation like confuced among two backups, which is latest?
So yes. Its useful for even single man, 5 files project.
To agree on me you need to know advantages of it. Ask Google.... it will tell you more than this.
Hurre im using a version controller, version management of my code is cool. NO!
He he, this is ware the intreresting poit comes. Any version management tool will helps you to manage your code versioning, it ONLY helps.
What ever tool you use version manageent of our code is purely depends on your practice.
Your update and commit practice.
Ah at least now came to the point i wanted to talk about.
How to use svn.
Always keep your code updated. Referances saying that every 10 to 20 minuits the source code should be updated.
This is very important in multy player projects. 
Actually the concept is 
Repository should always have wroking code.
Commit practice it very important part and debeatable part. When and what should i commit to the repo.
Your commit practice is depends on your coding practice. 
Actually recommended way as i think is each time when you completed a unit it has to be commited. Several units togather builds a feature or function. A unit is a pice of code which is testable and which adds value the the project.
All version controller allows to add a commit message while commiting. This is a very importent point. This is what helps us to understand what has been commited in this revesion. So make use of it. Usual recommendation is keep it short and meaningful.

PS :
6Published with Blogger-droid v2.0.10

No comments:

Post a Comment