New Toronto Group
 - New Toronto Group

The Gist of Code Sharing

| Posted on April 17th, 2013 by Oliver Merk


Agile development teams often need to share code while in the heat of battle.

At the high end of the scale, there are publicly-accessible repositories, such as GitHub. Creating a GitHub project is obviously overkill for those wishing to simply pass a few key lines of code to their buddy in the next seat.

For stand-alone, runnable demo code, sites like Plunker and JSFiddle  are great. You will see references to these sites wherever HTML, CSS and JavaScript bugs are reported; for example stackoverflow and the AngularJS Google Group.

But again, maybe overkill for just a few lines.

So what are the other options for code sharing?

    • Email - I suppose, but there may be delays in receiving the email if your server is slow.

 

    • Skype or other messaging service - Alright, but you lose history eventually.

 

    • USB Key (sneaker-net) - It works, but it is hard to share it with a lot of people and history is also an issue.

 

    • Gist - This has been around a couple of years but I've only just discovered it since it is baked into IntelliJ/WebStorm. Gist is a GitHub sub-project and is associated with your GitHub account. For example, my GitHub account is at https://github.com/oliverm2112 and my Gists are at https://gist.github.com/oliverm2112. Gist allows developers to post snippets of code in various languages and features in-place editing and syntax highlighting.



Here is a Gist home page and a code sample:

 



 

 

 



Here is a shot of IntelliJ/WebStorm's abilitity to create a Gist from within the IDE:



Hopefully you will find this a useful way to share information.

Posted in Code Sharing, Github  | Comments (0)

Comments (0)


Add a Comment





To use reCAPTCHA you must get an API key from http://recaptcha.net/api/getkey

Allowed tags: <b><i><br>Add a new comment: