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.
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.