ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

sharing code on Answers.ros.org

asked 2011-03-03 04:38:06 -0500

Scott gravatar image

updated 2011-03-03 05:49:49 -0500

Eric Perko gravatar image

When people correspond on this site and they want to share code back and forth as well as with the greater audience following a topic or conversation that interests them, is there a common location or way to share the code? Thanks, -Scott

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
6

answered 2011-03-03 05:14:56 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Small snippits can be inlined.

Larger snippits or whole files can be posted on places like pastebin

If you want to share a larger chunk of code I would suggest hosting it properly in a version control system which is public. There are many such as googlecode sourceforge github and bitbucket to name a few ones with free service.

Update:

Google Code is no longer active

edit flag offensive delete link more

Comments

I would second Tully's suggestion to use a shared version control system. I've been using GoogleCode's svn system but only as a single user so I don't know how well it works with multiple authors. The process seems to be that one person sets up a repository and then sends a password to others giving them permission to check stuff back in. (Checking out is public.) I see others are using git or mercurial so there may be better reasons to go that way. But for example, Scott could set up a GoogleCode repository called something like "facedetect-ros-pkg" and we can start plugging away at some code.
Pi Robot gravatar image Pi Robot  ( 2011-03-03 05:54:18 -0500 )edit
1

answered 2011-03-06 02:05:48 -0500

blueskin gravatar image

I personally prefer http://ideone.com/

it's an online compiler and debugging tool which allows to compile and run code online in more than 40 programming languages.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-03-03 04:38:06 -0500

Seen: 622 times

Last updated: Sep 18 '17