Rick Strahl has created CodePaste.NET, a website that allows .NET code snippets to be shared among social networking and IM users.
It is difficult to insert code in social networking web pages and IM windows because the code formatting usually gets lost or the number of characters is limited, or other similar reasons. CodePaste.NET lets anyone to paste code snippets in a text box, then hit the Paste button. The snippet receives a URL that can be copied from the browser’s address bar and distributed. Anybody can view that snippet, and signed-in users can comment and edit it. This way, snippets can be sent even over Twitter.
The website offers syntax highlighting for the following languages: C#, VB.NET, JavaScript, HTML, ASP.NET, JavaScript, XML, CSS, Sql, T-SQL, and FoxPro. Code line numbering can be turned on or off, and the code can be copied to the clipboard with a click.
The snippets can be retrieved as JSON, XML using “?format=json” (or xml) after the URL like this: http://codepaste.net/pouviy?format=xml. RSS and ATOM support was added to retrieve lists of snippets.
The entire website’s source code is available for review.
Pastie, a similar site, offers the same service but for a much larger choice of languages including Java, Ruby, C++, Python, Perl, PHP, Pascal, YAML, and others.
Community comments
Change and innovation...
by Jack Singleton,
Re: Change and innovation...
by Jonathan Allen,
Bad Quality
by Anand Vishwanath,
Change and innovation...
by Jack Singleton,
Your message is awaiting moderation. Thank you for participating in the discussion.
Does this really relate to "change and innovation in the enterprise software development community"? The article sounds almost like an advertisement with one sentence about a competitor tacked on the end.
Sorry I didn't make that sound more constructive, I do mean it to be taken constructively.
Re: Change and innovation...
by Jonathan Allen,
Your message is awaiting moderation. Thank you for participating in the discussion.
Thank you for letting us know you feel that way. There is a fine line between "news about a new product or service" and an "advertisement for a new product or service". When our customers like yourself tell us that we have strayed over the line, we take it very seriously.
Bad Quality
by Anand Vishwanath,
Your message is awaiting moderation. Thank you for participating in the discussion.
I think this is poor quality from InfoQ. Even the snippets posted on the site are half baked with junk names.