Go to Post Same as regrets in life: Learn from them. This is called "growth". - DonRotolo [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 10-11-2014, 17:20
baumgartensam's Avatar
baumgartensam baumgartensam is offline
Registered User
AKA: Sam Baumgarten
FRC #0751 (Barn2Robotics)
Team Role: Alumni
 
Join Date: Apr 2014
Rookie Year: 2013
Location: United States
Posts: 42
baumgartensam will become famous soon enough
Re: What does your team use to share code?

Quote:
Originally Posted by frcteam2501 View Post
Thanks for all the help!
On our team it seems like every programmer brings their own computer to work on so we will try using Github, the problem we've been having with flash drives is that you can't easily merge codes, does Github merge codes if 2 people are working at once? (anyone have a link to a tutorial on how to use it for FRC?)
Yes, that is one of git (and therefore Github's) most powerful features. Most code that is used for FRC (java or c++) will be automatically merged very nicely.

Github is also one of the largest hosted source control products used today. It's a good skill to have (ability to use git) as you will need to use it out in the professional world.

Pull requests are one feature Github has which enable teams to do code review (aka before code enters the main code base, another person has to look over it first). This is a really good practice to get into and Github makes it very easy to do. https://help.github.com/articles/using-pull-requests/

Lastly, Github gives FRC teams a free silver organization (https://github.com/pricing). You can request it at https://github.com/edu.
Reply With Quote
  #2   Spotlight this post!  
Unread 10-11-2014, 19:23
Jpatterson1710's Avatar
Jpatterson1710 Jpatterson1710 is offline
Registered User
AKA: Josh Patterson
FRC #1710 (Ravonics Revolution)
Team Role: Alumni
 
Join Date: Feb 2014
Rookie Year: 2012
Location: Olathe, KS
Posts: 101
Jpatterson1710 has a spectacular aura aboutJpatterson1710 has a spectacular aura aboutJpatterson1710 has a spectacular aura about
Re: What does your team use to share code?

We use dropbox. Any programmers, or anyone who might just use the code is invited to a shared dropbox folder. If you download the dropbox program is shows up like any other folder on your device, and you can save just like normal. Everyone will have access to the newest code immediately after its saved on whatever device last worked on it.
__________________
2012-2014 Mechanical Team FRC 1710
2014-2015 Chief Operations Officer FRC 1710
2016-Present FTAA
Reply With Quote
  #3   Spotlight this post!  
Unread 11-11-2014, 17:25
frcteam2501's Avatar
frcteam2501 frcteam2501 is offline
Kyle Ronsberg
AKA: Kyle Ronsberg
FRC #6056 (Brotherhood of Steel)
Team Role: Mentor
 
Join Date: Aug 2013
Rookie Year: 2011
Location: North Saint Paul, Minnesota
Posts: 8
frcteam2501 is an unknown quantity at this point
Re: What does your team use to share code?

What happens if you have 2 programmers working on code at the same time? Does dropbox try to merge your codes? or does it just take the newest one?
__________________
Team: 2501
Reply With Quote
  #4   Spotlight this post!  
Unread 11-11-2014, 18:37
yash101 yash101 is offline
Curiosity | I have too much of it!
AKA: null
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: devnull
Posts: 1,191
yash101 is an unknown quantity at this point
Re: What does your team use to share code?

Git is probably a really good way to keep your code, even if you are programming yourself. I have a GitHub account and it has saved me a lot of work.

Just yesterday, I had a problem, where I was pushing a small change to my repo in the sky at GitHub. I tried to remove the build folder using the command:
PHP Code:
rm -*build 
I forgot "build" and all of a sudden, my command became:
PHP Code:
rm -
Too bad so sad for the work done. It's alright though. My change was quite small. Because of that, I just cloned the repo again and redid that change.
It took me about 15 minutes to fix my large mistake.
If I didn't use GitHub, I would have lost 2 weeks of work!
Reply With Quote
  #5   Spotlight this post!  
Unread 11-11-2014, 19:42
frcteam2501's Avatar
frcteam2501 frcteam2501 is offline
Kyle Ronsberg
AKA: Kyle Ronsberg
FRC #6056 (Brotherhood of Steel)
Team Role: Mentor
 
Join Date: Aug 2013
Rookie Year: 2011
Location: North Saint Paul, Minnesota
Posts: 8
frcteam2501 is an unknown quantity at this point
Re: What does your team use to share code?

Does anyone know of any examples on how to use Github for FRC C++?
__________________
Team: 2501

Last edited by frcteam2501 : 12-11-2014 at 17:33.
Reply With Quote
  #6   Spotlight this post!  
Unread 11-11-2014, 21:10
yash101 yash101 is offline
Curiosity | I have too much of it!
AKA: null
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: devnull
Posts: 1,191
yash101 is an unknown quantity at this point
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>
Reply With Quote
  #7   Spotlight this post!  
Unread 13-11-2014, 19:42
Jpatterson1710's Avatar
Jpatterson1710 Jpatterson1710 is offline
Registered User
AKA: Josh Patterson
FRC #1710 (Ravonics Revolution)
Team Role: Alumni
 
Join Date: Feb 2014
Rookie Year: 2012
Location: Olathe, KS
Posts: 101
Jpatterson1710 has a spectacular aura aboutJpatterson1710 has a spectacular aura aboutJpatterson1710 has a spectacular aura about
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).
__________________
2012-2014 Mechanical Team FRC 1710
2014-2015 Chief Operations Officer FRC 1710
2016-Present FTAA
Reply With Quote
  #8   Spotlight this post!  
Unread 13-11-2014, 23:46
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: What does your team use to share code?

Quote:
Originally Posted by Jpatterson1710 View Post
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.
Reply With Quote
  #9   Spotlight this post!  
Unread 19-11-2014, 13:33
Team118Joseph's Avatar
Team118Joseph Team118Joseph is offline
The guy that did the lighting
AKA: Joseph Foster
FRC #0118 (Robonauts)
Team Role: Alumni
 
Join Date: Jan 2014
Rookie Year: 2013
Location: League City
Posts: 61
Team118Joseph will become famous soon enoughTeam118Joseph will become famous soon enough
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.
Reply With Quote
  #10   Spotlight this post!  
Unread 30-01-2015, 09:24
FRC2501's Avatar
FRC2501 FRC2501 is offline
Registered User
FRC #2501 (Bionic Poalrs)
 
Join Date: Jan 2015
Rookie Year: 2008
Location: Minnesota
Posts: 52
FRC2501 is an unknown quantity at this point
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.

Last edited by FRC2501 : 30-01-2015 at 09:27.
Reply With Quote
  #11   Spotlight this post!  
Unread 30-01-2015, 09:25
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is online now
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,721
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: What does your team use to share code?

Quote:
Originally Posted by FRC2501 View Post
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.
Reply With Quote
  #12   Spotlight this post!  
Unread 30-01-2015, 09:31
FRC2501's Avatar
FRC2501 FRC2501 is offline
Registered User
FRC #2501 (Bionic Poalrs)
 
Join Date: Jan 2015
Rookie Year: 2008
Location: Minnesota
Posts: 52
FRC2501 is an unknown quantity at this point
Re: What does your team use to share code?

Quote:
Originally Posted by notmattlythgoe View Post
That's easy, take the flash drive, and hide it.
I wish, he keeps 2 on his keychain

Last edited by FRC2501 : 30-01-2015 at 09:35.
Reply With Quote
  #13   Spotlight this post!  
Unread 30-01-2015, 13:18
Spoam's Avatar
Spoam Spoam is offline
Registered User
AKA: Pedro M.
FRC #0955 (CV Robotics)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2012
Location: Corvallis
Posts: 54
Spoam is a jewel in the roughSpoam is a jewel in the roughSpoam is a jewel in the roughSpoam is a jewel in the rough
Re: What does your team use to share code?

Quote:
Originally Posted by FRC2501 View Post
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!
__________________
2015 PNW District Champions (955, 1983, 2930)





Co-Creator of 955 OPR
Reply With Quote
  #14   Spotlight this post!  
Unread 30-01-2015, 16:04
MamaSpoldi's Avatar
MamaSpoldi MamaSpoldi is offline
Programming Mentor
AKA: Laura Spoldi
FRC #0230 (Gaelhawks)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Shelton, CT
Posts: 305
MamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant future
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.
__________________
Reply With Quote
  #15   Spotlight this post!  
Unread 13-11-2014, 23:20
baumgartensam's Avatar
baumgartensam baumgartensam is offline
Registered User
AKA: Sam Baumgarten
FRC #0751 (Barn2Robotics)
Team Role: Alumni
 
Join Date: Apr 2014
Rookie Year: 2013
Location: United States
Posts: 42
baumgartensam will become famous soon enough
Re: What does your team use to share code?

Quote:
Originally Posted by frcteam2501 View Post
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/
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:00.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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