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 ?
Web Applications Stack Exchange is a question and answer site for power users of web applications. It only takes a minute to sign up.Sign up to join this community
There are 4 that I know of:
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.
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.
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 http://cl.ly/1aVE/Screen_shot_2010-07-08_at_16.38.25.png
For sharing, writing simple JS code http://www.jsbin.com/ is pretty cool!!
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. ;)
This question was asked on stackoverflow for c#/.NET code: https://stackoverflow.com/questions/3078045/is-there-a-public-site-to-make-and-share-live-examples-of-c-net-code/
A good answer is CodeRun:
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.
Try Liveweave for HTML5, CSS3 & JS coding. It is awesome!