Tuesday, July 21, 2009

Sharing .Net code snips when you only have 140 characters… CodePaste.Net

Rick Strahl’s Web Log - Introducing CodePaste.NET

“I’ve recently put up my first MVC project online: CodePaste.NET, which is a public code pasting site that allows you to paste and link code from social network sites like Twitter and Facebook or chat and IM applications like Skype or Messenger. The idea is that these social network or chat clients work well for interactive discussion but they don’t allow enough space to post even the shortest snippets of code for all participants to see. As a developer a lot of my Twitter traffic deals with discussions around code or code concepts so a place to share and view code is very useful.

So rather than squeezing code snippets into these clients you can post it on the the CodePaste.NET site and then link to the snippet.

CodesnippetDisplay_2

The link looks something like this:

http://codepaste.net/x5ndfj

Which can pick out of the Address band and then easily embed into social network clients as a URL link. Codepaste URLs are short so they take up minimal space in tweets even without URL truncation.

Below you can see a code link to CodePaste.NET linked from a Twitter tweet…

Tweet_7ebbffe0-a7cc-4960-8c10-818eaedd4eca

…”

A VERY quick and easy way to share code snips when you only have a few characters to play with. Not only do you get the code, but color coding, comments, etc.

image

There’s no barrier to entry, just paste select a highlight and go. No registration required. Nice…

And best of all Rick has posted his source (well a link to the SVN repository… :)

No comments: