Jul 28
2008

The Pastebin, Evolved

Posted by Nick Plante in Web DevelopmentDebugging

nap

Pastebins are a simple tool for sharing code snippets for public viewing. They've existed seemingly forever and are incredibly popular in IRC (you do still use IRC, right?) where they're used to paste larger amounts of code for discussion, analysis, and debugging. In return for your text, you're given a nicely formatted syntax highlighted page whose URL you can paste into the channel. Typical examples include pastebin.com, pastie.org, and nopaste.info

Last week, Git repository hosting service GitHub demonstrated a new twist on the boring but useful pastebin concept with their latest offering, Gist. The novell thing about Gist is that any code that is pasted by a user into the service ends up becoming its own Git repository...

 This means that it can be cloned, forked (and corrected or improved upon by other users), modified, and pushed back to like any other  version controlled piece of code. For instance, a user seeking help in IRC can paste a code snippet, then update it as they receive feedback from the channel -- either from the web form directly or by cloning, editing, and pushing a copy from their local development environment. Another user may choose to fork that repository and create their own version, which they could later push back to the original (given the original author's permission).

This is all good stuff, and also bodes well for Gist eventually being usable as a larger code snippets library (once proper search is implemented). However, perhaps what's most important is that the pastebin interface remains the same; users can still enter text through a simple form and are given back a URL they can paste into an IRC channel or share via email. This means that you don't have to be at all familiar with Git in order to take advantage of it for simple version control of code snippets. It also means that you can revise documents direclty through a browser, creating new commits and generating document history without understanding any Git-specific instructions.

This transparent application of version control to shared code snippets is what makes Gist a true joy to use; it has successfully lowered the barrier to entry for contributing to open source and maintaining versioned code snippet libraries. Does this mean that an in-browser ability to fork and directly edit open source projects hosted at GitHub is next? This could certainly be useful for contributing small changes, such as documentation patches.



Comments (0)Add Comment

Write comment
You must be logged in to a comment. Please register if you do not have an account yet.

busy

Dobbs Code Talk Quick Poll

Is Oracle's acquistion of Sun:

Look Who's Code Talking


gren mercer
City: dorset

Joel Neely
City: Collierville

Niklas Hemdal
City: Leesport

Gary Harpin
City: Coventry

Eric Gustafson
City: Minneapolis

Mike Swaine
City: Grants Pass

Dobbs Code Talk Tags

.NET abstraction Ada Adobe Agile Ajax algorithm Algorithmic complexity ALM Android Anecdotes Apple Application Development AppStore Architecture and Design Artificial Intelligence Audio files AWK Banking Books C C Programming C Sharp Cartoon Category theory Cellular automata Cloud Computing Cobol Coder Of The Month Cognition as compression Collaboration Common Process/Frameworks Compilers concurrency Conferences Consciousness research Contest contests CPlusPlus D Programming Data Centers Databases Debugging Delphi Deployment design Design Patterns Django Documentation DSL dynamic language Eclipse EDA education Emacs Embedded Systems Encryption engineering Erlang Excel Facebook Financial computing Five Questions Flash Flash Lite Flex Forth Fortran Fraud Fun Functional Programming gadgets Games gnuplot Google Graphics GUI hardware High-Performance Computing History Holographic reduced representations Humour Innovation Interview iPhone J2EE Java JavaFX JavaOne JavaScript language engineering Legal LINQ Linux Lisp Literate Programming Logic Programming m4 Mainframes Make Mathematica Mesh messaging Metaprogramming Microsoft MID Miscellaneous Musings ML Mobile Software Mobility modeling multicore Music MVC myblog Networking Neural networks Nokia numerical computing Object Rexx Online spreadsheets OOP Open Source OpenBSD OpenSolaris Operating Systems Optimization Oracle Parallelism Concurrency Parsing Pascal Patterns Perl PHP Podcast Pop11 Poplog Privacy Processing Programming Language Implementation Programming Language One Programming language semantics Programming Languages Programming Style Project Management Prolog Public understanding of science puzzle Python Quotes Rails Realtime Requirements Research practice REST Review RIA rich internet applications Robotics Ruby SaaS Software as a service Schadenfreude Science fiction Screencast SD Best Practices Search Security Semantic Web Silverlight SOA Social Networks Software Development Methodology and Management Songs and poems Spending Priorities Spreadsheets SQL Statistics Storage Survey Teaching Testing The Business of Programming The Dobbs Challenge The Future Theory Transhumanism Unix Upgrade Usability Use Cases USENET User Interface Design Version Control video virtual machines Virtualization Visual Studio Visual Studio Sponsored Post Web Development Windows Windows Live Wireless WOA WPF X Window System

Subscribe to Dr. Dobbs Newsletter

Email Address
Dr. Dobb's Update
Delivered twice a week, Dr. Dobb's Update provides unbiased and objective news, commentary and technical features spanning the entire software development marketplace.
 

Latest Comments

Where are all the girls?? (Internationa...
Games isn't my thing, but I believe you're totally correct on that part. But there's so many other parts to CS! One of the profs at Tufts runs a team...
Java FX Bundle and Learning Journal
Anyone interested in getting more familiar with Java FX should check out the game at http://www.pietheory.com/
Springy Applet Duck
Dave: I passed your diagnostics to Ken Perlin. The source of that applet isn't available — think this is the Java plug-in not being backwards-co...
What Dijkstra said was harmful about got...
The inevitable logical conclusion of your article is: goto targets have to enumerate the goto sources. This, of course, needs labeling the gotos. Con...
Where are all the girls?? (Internationa...
Back in the 80s I was interested in LISP. I took a class at the local State College even though my company offered courses from Stanford at work. I ...

The Latest From Our Member Blogs

Hi-tech Enterprises Shine at Canton Fair
Written by Rebecca Choi   
04/25/09
To cope with the global economic downturn triggered by the financial crisis, and to ensure the early revival of Chinese economy, Chinese government has stipulated a series of policies to maintain stea
 
Integrated Business Management and Office Network Solution
Written by Rebecca Choi   
04/19/09
1.      System IntroductionAlong with the gradually coming of information era, rapid increase of society information, it is impossible for people to use traditional method to
 
Understanding Figaro - Feature Sets
Written by Lucas Vogel   
04/16/09
The Figaro XML database library is a  data layer built for software developers. For starters, your database runs as a collection of classes in your application – unless you’ve
 
What to expect at HANNOVER MESSE
Written by Rebecca Choi   
04/10/09
In 2009, 13 flagship fairs of international renown are being featured at HANNOVER MESSE as the world's largest and most important showcase for industrial technology.   EVOC will showcas
 
Vision Objects is proud to announce the release of its brand new note management application: MyScri
Written by Ann VIOLLIER   
04/10/09
Nantes, April 9, 2009. MyScript Studio is a new note management application developed by Vision Objects which aims at helping people to store, find and share information. The application detec
 
Introducing Figaro - the XML Database for the .NET Framework
Written by Lucas Vogel   
04/07/09
Back in October 2008, Endpoint Systems formalized its relationship with Oracle by becoming an Oracle Partner. Today, I’d like to introduce to you the fruits of our labor and the first product
 
Interesting article on learning a language
Written by Andrew Johnson   
04/02/09
  Language Learning And Your Natural Style It's amazing how some people can effortlessly memorise countless footy scores or re
 
EVOC Applies for German Utility Models
Written by Rebecca Choi   
04/01/09
March, 2009, EVOC Group successfully applied for German utility models for its IPC products. Different from personal and commercial computers, industrial PCs can maintain stable and reliable perform
 
EVOC Group Signs Joint Declaration with North Rhine-Westphalia
Written by Rebecca Choi   
03/31/09
EVOC Group, a high-tech enterprise in Shenzhen announced that on March 27, the company's General Manager, Sun Wei, signed a Joint Declaration of Economic Cooperation with the State of North Rhin
 
EVOC Network Security Audit Solution
Written by Rebecca Choi   
03/29/09
System Introduction As the popularization of Internet, more and more enterprises do business through network. Enterprises' abilities of information processing are greatly enhanced. Based on embed
 
Have You Ever Thought What Is Actually in the ATM?
Written by Rebecca Choi   
03/29/09
When you are drawing cash from an ATM, besides the money, have you ever thought what is in the ATM? Why could it possibly tell the money is not counterfeit, and precisely process each order? Have Yo
 
Is Java becoming annoying?
Written by Henrique Lobo Weissmann   
03/26/09
Just some days ago I wrote a small article on my blog named "Why Grails is really matters for a Java Developer (and actually saves JEE from boredom)", wich can be accessed here: http://www
 

The Latest From Dr. Dobbs

DDJ