Go to Post There are so much more things to be worked on and are more beneficial to FIRST and FIRSTers than green dots by someone's name. - tiffany34990 [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 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
  #2   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
  #3   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
  #4   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
  #5   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
  #6   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
  #7   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
  #8   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
  #9   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
  #10   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
  #11   Spotlight this post!  
Unread 30-01-2015, 12:31
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 FRC2501 View Post
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).
Reply With Quote
  #12   Spotlight this post!  
Unread 30-01-2015, 22:38
tcjinaz tcjinaz is offline
Tim
FRC #3853
Team Role: Mentor
 
Join Date: May 2011
Rookie Year: 2011
Location: Arizona
Posts: 206
tcjinaz has a spectacular aura abouttcjinaz has a spectacular aura about
Re: What does your team use to share code?

Quote:
Originally Posted by FRC2501 View Post
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
__________________
Software Mentor
3853 Pridetronics[

Reply With Quote
  #13   Spotlight this post!  
Unread 30-01-2015, 22:41
xXhunter47Xx's Avatar
xXhunter47Xx xXhunter47Xx is offline
Lord of Lazy
AKA: Austin $wagmaster1337
FRC #4738 (Patribots)
Team Role: College Student
 
Join Date: Jan 2014
Rookie Year: 2013
Location: San Diego
Posts: 305
xXhunter47Xx will become famous soon enough
Re: What does your team use to share code?

Quote:
Originally Posted by tcjinaz View Post
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
Interesting on the IT department. We are able to use Github (both in AP CompSci and in Robotics, with personal and school computers) with no issue.
I strongly suggest you talk to the Site Tech or someone with administrative properties, Github is a very useful resource especially when you have more than 3 code monkeys.
__________________
College sux yo
Reply With Quote
  #14   Spotlight this post!  
Unread 31-01-2015, 11:22
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 tcjinaz View Post
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
I found a way to bypass my school's ssh block
Reply With Quote
  #15   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
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