• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Version Control

 
Ranch Hand
Posts: 590
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Just wondering what approach people took with regards source\version control?

1. Didn't use any?
2. Used a local repository on the same machine as developing?
3. Used a remote repository?

Cheers,

Sean.
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
local history only on same machine + using an usb stick to make a backup each day
 
Sean Keane
Ranch Hand
Posts: 590
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Roel. Out of interest, what did you use for your local history? e.g. CVS, Subversion etc?
 
Sean Keane
Ranch Hand
Posts: 590
Eclipse IDE Chrome Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Interesting post here on using SubVersion locally.
 
Roel De Nijs
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
local history that comes with my IDE (eclipse), so no cvs, svn or git.
 
Ranch Hand
Posts: 222
Google Web Toolkit Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I did the same as Roel, used USVCS = USB Stick Version Control System

I think there is no point on using SVN or anything like that on local machine, cause if your machine is down, your code will be gone.
 
Sean Keane
Ranch Hand
Posts: 590
Eclipse IDE Chrome Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Interesting point about the use of local history in Eclipse Roel. I've never used this feature in the past - I must read up on it. I'd be interested to know where the history is stored and what it is associated with? If it is stored with the project, or the workspace, or somewhere else? Is the history kept if I import the project into another version of Eclipse?

Using source control locally may seem like a pointless exercise on the face of it. As Elchine mentioned, especially since your repository and checkout are on the same machine ! But there are some benefits.

  • You can tag milestones in your project - this allows you to roll-back the entire state of your project to known working points.
  • You can branch if you wanted to try out some idea and leave the head stable with your working version.
  • You can easily diff between version of the file, you can easily roll back a single file to any of its' previous states.
  • You can easily move the project and all of its' history to another machine.


  • Regards storing the repository locally, I've been playing around with SVN and a remote project hosting site that supports SVN called Assembla . It's pretty cool! I had it setup within a few minutes - this included setting up my account, integrating with Eclipse, and integrating with TortoiseSVN.

    I also took a look at Google Code and it looks very nice! But it doesn't allow private projects like Assembla. All projects seem to have to be open source.

    All possibly overkill for a "small" project. But another way of looking at it is it is much easier to get a handle on such techniques, setups, processes etc. on a very small project than trying to learn it all on a large project. So there's benefits in treating a small project as if it were some larger development project. So when it comes to a larger project you'll be already accustomed these things.

     
    Roel De Nijs
    Sheriff
    Posts: 11604
    178
    Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    More info about Eclipse's local history can be found here.

    For the assignment you don't need a real version control system, like you would use in your daily job when being part of a development team. Because you are the only one who makes code changes, so no conflicts, no synchronizing with changes made by other developers,... The local history comes just in handy when you have tried something out, is not what you want, so you can really easy undo your changes. For this reason I sometimes use the local history feature during work time.

    And because I would be when I'm almost finished but due to some virus or crash on my laptop I had to start the assignment all over again, I made every day a backup to an usb stick and I also uploaded the zip file to my web space.
     
    Rancher
    Posts: 175
    Clojure Java Linux
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Dreamhost, which I use for hosting, has a one-click installer for Subversion. So I just set up an SVN repos.
     
    Ranch Hand
    Posts: 56
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Just in case of a system failure e.g. hard drive crash, I back up my code regularly and store off-site. I use ant to zip my source code, add a timestamp to the zip file name and store off-site/external hard drive /usb stick.
     
    Roel De Nijs
    Sheriff
    Posts: 11604
    178
    Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    For the websites I made personally (and professionally) I created a svn repository here. If you just need one, it's free.
     
    Sean Keane
    Ranch Hand
    Posts: 590
    Eclipse IDE Chrome Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Thanks for the recommendations guys. I will check them out.
     
    There is no "i" in denial. Tiny ad:
    Gift giving made easy with the permaculture playing cards
    https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
    reply
      Bookmark Topic Watch Topic
    • New Topic