![]() |
What does your team use to share code?
Our team uses C++ and sinced we have grown from a programming team of 1 to a team of 5, we need to find a program that we can use to share our code with each other. Anyone have a suggestions on what to use?
|
Re: What does your team use to share code?
Use GitHub and fork/push/pull the code for development. They have a great set of tutorials to help learn the process and the give each FIRST team a free private repository.
|
Re: What does your team use to share code?
Seconding github.
They'll give FRC teams more than one private repo if you ask. I know 79 has at least 5. |
Re: What does your team use to share code?
Github. Though we personally use flash drives.
|
Re: What does your team use to share code?
Quote:
|
Re: What does your team use to share code?
We currently use GitHub as well, but in the past we've simply done all of our robot programming on one laptop (with a second laptop serving as a backup). There are disadvantages to that, but it makes sure there's only one copy of the code.
|
Re: What does your team use to share code?
adding another one for github, but when its very simple code we just use pastebin
|
Re: What does your team use to share code?
Another for github. A bit of a learning curve to get used to it, but the features are super powerful. Also hip and new :P it's what all the cool kids use.
|
Re: What does your team use to share code?
One last thing about git is that it allows for access to your complete history even without internet access, which can be very helpful at most competitions -- not that we ever have to edit our code at competition :-)
|
Re: What does your team use to share code?
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?) |
Re: What does your team use to share code?
Yes, git (the software one uses to publish changes to github and to manage changes made to software locally) is very good at handling merges. See http://git-scm.com/book/en/v2/Git-Br...ng-and-Merging
|
Re: What does your team use to share code?
Quote:
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. |
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.
|
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?
|
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:
PHP Code:
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! :eek: ::ouch:: |
Re: What does your team use to share code?
Does anyone know of any examples on how to use Github for FRC C++?
|
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> |
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).
|
Re: What does your team use to share code?
Quote:
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/ |
Re: What does your team use to share code?
Quote:
Quote:
* 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. |
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.
|
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. |
Re: What does your team use to share code?
Quote:
|
Re: What does your team use to share code?
Quote:
|
Re: What does your team use to share code?
Quote:
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). |
Re: What does your team use to share code?
Quote:
|
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 |
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.
|
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.
|
Re: What does your team use to share code?
Quote:
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 |
Re: What does your team use to share code?
Quote:
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. |
Re: What does your team use to share code?
I just want to make an observation about what happened on this thread. The OP asked a question about "sharing code", and the first TEN replies unanimously recommended a specific version control system and supporting website - GitHub. Unanimous, that is, except for one dissenter who acknowledged that git is the right and noble path, but confessed to using flash drives in actuality. This agreement is just one testament to the power and importance of using source control, and to the quality of Git and GitHub.
If you need more proof that Git is the way to go, consider these:
|
Re: What does your team use to share code?
Quote:
|
Re: What does your team use to share code?
Quote:
|
Re: What does your team use to share code?
Quote:
Quote:
|
Re: What does your team use to share code?
Quote:
|
Re: What does your team use to share code?
Quote:
|
Re: What does your team use to share code?
Our school set up every student with a Google account with unlimited Google Drive space. We put the programs into a zip file and upload and share it through google drive.
|
Re: What does your team use to share code?
Quote:
I understand completely the desire to use online space free of charge. We were able to set that up using SourceForge and use an SVN interface to provide the SCM functionality... all free of charge. I would be happy to post info here if anyone would like details. |
Re: What does your team use to share code?
We just use a flash drive that we lock up every night. it is kind of old fashioned but it keeps all of our code safe and gives us easy access to all of our code going back several years and we have daily backups of code to go back to if a file is corrupted.
|
| 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