Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   What does your team use to share code? (http://www.chiefdelphi.com/forums/showthread.php?t=131057)

frcteam2501 11-11-2014 19:42

Re: What does your team use to share code?
 
Does anyone know of any examples on how to use Github for FRC C++?

yash101 11-11-2014 21:10

Re: What does your team use to share code?
 
My repositories are about 90% C/C++ ;).
Feel free to check out every inch of it ;)
https://github.com/yash101
To download a repository,
user@dev~/soft $ git clone <location of repository>

Jpatterson1710 13-11-2014 19:42

Re: What does your team use to share code?
 
Dropbox overwrites with the newest saved version. Thats why we just keep numbered versions (V1, V1.1, V2, V2.1).

baumgartensam 13-11-2014 23:20

Re: What does your team use to share code?
 
Quote:

Originally Posted by frcteam2501 (Post 1408253)
Does anyone know of any examples on how to use Github for FRC C++?

Here are some resources:
http://git-scm.com/book/en/v1/Getting-Started
https://guides.github.com/introduction/flow/
https://guides.github.com/activities/hello-world/
https://www.atlassian.com/git/tutorials/

Alan Anderson 13-11-2014 23:46

Re: What does your team use to share code?
 
Quote:

Originally Posted by Jpatterson1710 (Post 1408471)
Dropbox overwrites with the newest saved version.

Dropbox actually does give you the ability to restore previously saved versions of a file.* But it isn't really set up for the kind of version control that would be useful for most teams.

Quote:

Thats why we just keep numbered versions (V1, V1.1, V2, V2.1).
Our "numbered versions" are copies of the project folder with the time and date appended to the name of the folder.


* That came in handy once when I accidentally saved an empty copy of my son's senior design project. I think he still isn't aware that it happened.

Team118Joseph 19-11-2014 13:33

Re: What does your team use to share code?
 
During the season we use one of our facilities desktops as a SVN server. After the season ends we publish the code on our team's website.

FRC2501 30-01-2015 09:24

Re: What does your team use to share code?
 
Thanks for all the help!
I have been using GitHub for a few weeks and it has been working great! (They even gave our team bronze for free!)

Now comes the hardest part, convincing the Programming Captain that GitHub is better than flash drives, he refuses to use GitHub (maybe because he's a Senior and a Sophomore set it up and knows more than him?) and I need to convince him that GitHub is easier to use and better for organizing the 10+ programmers we now have.

notmattlythgoe 30-01-2015 09:25

Re: What does your team use to share code?
 
Quote:

Originally Posted by FRC2501 (Post 1436036)
Thanks for all the help!
I have been using GitHub for a few weeks and it has been working great! (They even gave our team bronze for free!)

Now comes the hardest part, convincing the Programming Captain that GitHub is better than flash drives

That's easy, take the flash drive, and hide it.

FRC2501 30-01-2015 09:31

Re: What does your team use to share code?
 
Quote:

Originally Posted by notmattlythgoe (Post 1436037)
That's easy, take the flash drive, and hide it.

I wish, he keeps 2 on his keychain

baumgartensam 30-01-2015 12:31

Re: What does your team use to share code?
 
Quote:

Originally Posted by FRC2501 (Post 1436038)
I wish, he keeps 2 on his keychain

Send him over to this thread :) Git is one of the primary version control technologies used in industry and it's good to get familiar with it, especially if you are going into a software engineering job. It allows you to see who changed what, have multiple people editing the same files at once, and rollback any major changes that create issues.

Also, on a completely separate but relevant note:

You may not want to use what I'm about to say if you've never used git before, but Atlasssian will provide Jira (a bug tracker) to FRC teams for free. It integrates with Github so you can link commits to specific bug. Just thought I would let some other people know if they didn't already. We use Jira constantly for managing our bugs and what everyone on our programming team is doing. I also use Jira at work and I have nothing but good things to say about it (other than a few more complicated features being ... well ... to complicated).

Spoam 30-01-2015 13:18

Re: What does your team use to share code?
 
Quote:

Originally Posted by FRC2501 (Post 1436036)
Thanks for all the help!
I have been using GitHub for a few weeks and it has been working great! (They even gave our team bronze for free!)

Now comes the hardest part, convincing the Programming Captain that GitHub is better than flash drives, he refuses to use GitHub (maybe because he's a Senior and a Sophomore set it up and knows more than him?) and I need to convince him that GitHub is easier to use and better for organizing the 10+ programmers we now have.

If he doesn't learn to use git now, he'll definitely need to learn to use it in the future. I interned for a multi-billion dollar software company, and even they have a GitHub repository (along with their own git server). If he wants to be serious about programming version control is a must. Good luck!

MamaSpoldi 30-01-2015 16:04

Re: What does your team use to share code?
 
We use SVN. I personally prefer it to Git because I find the operations are simpler and more explicit... and like Git it is a full version control with merging code and marking revisions. In previous years we stored the repository on our team laptop and networked all the programmers' laptops with it using a router. This gave us full access to the history at competition on our team laptop if needed and in addition we make a back up to a flash drive of every version of code that is downloaded to the robot during the competition. This has been a saving grace a couple of times when someone in the pit moved the programming laptop and thought they didn't touch anything.

However, since this year's communications strategy lends itself to using Wifi, we have moved our repository to the cloud on SourceForge which works well with SVN. This will provide further flexibility for student programmers to grab updates at home and still fulfills our other needs. We will still be using the flashdrive backup occasionally during build season and most definitely everytime we deploy code at competition. There is nothing worse than not being sure what source code was used to generate the executable that is currently sitting on the robot. :D

mail929 30-01-2015 21:13

Re: What does your team use to share code?
 
We use BitBucket for hosting all our code, but when we open source it we put it on GitHub. And of course we use git with each.

Jalerre 30-01-2015 22:20

Re: What does your team use to share code?
 
This season we have been testing Nitrous with Github integration. It allows us to edit code simultaneously in Nitrous' IDE similar to Google Docs (this function is still experimental and can be buggy but overall has been working pretty well). We save it in a box in Nitrous and when we're ready we push it to Github using Nitrous's console.

tcjinaz 30-01-2015 22:38

Re: What does your team use to share code?
 
Quote:

Originally Posted by FRC2501 (Post 1436038)
I wish, he keeps 2 on his keychain

We keep the stick in a special drawer in the tool box. The team knows that there will be great trouble if anything happens to it.

Plus a copy goes on my drive immediately.

If the development laptops could get to the internet we would take a shot at GitHub, but the school district's IT department is kind of tightly wound.

Tim


All times are GMT -5. The time now is 09:52.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi