Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I was wondering what are the existing service for sharing code. The only one I know is http://pastebin.ca/

What are the other alternative and what feature do they have ?

share|improve this question

closed as off topic by Al E., Eight Days of Malaise, phwd Aug 12 '12 at 21:06

Questions on Web Applications Stack Exchange are expected to relate to web applications within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Perhaps you could clarify: are you looking for options for sharing projects and incorporating source control, or are you looking for options for sharing code snippets as a pastebin? I seem to have interpreted the question differently than others. –  Rebecca Chernoff Jul 8 '10 at 15:23
    
ohloh –  Coder Hawk Jul 9 '10 at 12:53
add comment

11 Answers 11

up vote 8 down vote accepted

There are 4 that I know of:

  1. http://bitbucket.org/ (for Mercurial Version Control)
  2. http://github.com/ (for Git Version Control)
  3. http://www.codeplex.com/
  4. http://sourceforge.net/

The big difference in features are that options 1 and 2 seamlessly integrate version control and allow you to have public and private projects. So you will be able to work with others on code without the whole world seeing it.

Options 3 and 4 allow version control but I am not sure how tightly integrated they are with certain version control systems. Also, my understanding is that you can't keep projects private in those 2 systems.

In general the Ruby community used github, the python community uses bitbucket, microsoft runs codeplex, and sourceforge is all about open source. Though I believe you can use any language with any of them.

For code snippets I think http://ideone.com/, http://friendpaste.com/, and http://jsfiddle.net/ are good. JSFiddle is especially awesome for editing and sharing Javascript.

share|improve this answer
3  
github also have something called gist to share smaller pieces of code. It's like pastebin, but with version control. –  Philippe Mongeau Jul 8 '10 at 15:17
add comment

See this question that also brings in executing the code. Answers regarding IDEOne and JSFiddle both offer pastebin functionality. Some of the others may as well.

share|improve this answer
    
+1 as an IDEone user. –  Kzqai Jul 8 '10 at 15:22
add comment

Assembla is a good one. http://www.assembla.com It offers Git and SVN source code control, tickets, private/public options, user management, web viewing, etc. Prices start at free and move upwards from there. ;)

share|improve this answer
add comment

For sharing, writing simple JS code http://www.jsbin.com/ is pretty cool!!

share|improve this answer
add comment

If you literally just want duplicate pastbin functionality I use Friend Paste. It allows you go comment on lines of code, edit friend's code, and even set a password that people have to enter to view it.

share|improve this answer
add comment

Forrst allows you to share code (and screenshots/links) and discuss them, currently in beta and invite-only but due to open up soon.

Here's an example post: Forrst screeny

share|improve this answer
add comment

I use jsFiddle all the time for javascript prototyping or code snippet sharing.

share|improve this answer
add comment

If you want to share between fewer than ten people, then take a look at Fisheye: http://www.atlassian.com/software/fisheye/ - it's $10.

It hooks into a subversion repository, so you can see changesets of people's checkins. Another application which works well with Fisheye is Crucible, http://www.atlassian.com/software/crucible/ which works for code reviews.

share|improve this answer
add comment

http://collabedit.com

Features Include:

  • Real time editing
  • Syntax highlighting
  • Sidebar Chat
  • History
share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.