As a contract developer, I work remotely a lot. Additionally, I share code with a lot of fellow developers across Instant Messeaging (AOL, Yahoo, MSN, IRC, etc.). One of the tools I utilize is called Pastebin. It’s a site where you can post code, and it’ll give you a unique URL. You can then send that URL other others via IM by pasting it in. They can then see your code that you pasted, formatted and highlighted all pretty (since Pastebin knows a bunch of programming languages). It even has diff support (to see differences in code if someone modifies what you posted). Quick, simple, fast.
Additionally, you can host Pastebin on your own site.
I wanted to see if I could do it in Flex utilizing Flashcom to enable it real-time. Although Pastebin is fast, it still requires you to do a page refresh to see the most up to date postings. Since Flashcom is push based, I can see code as it’s posted, real-time.
It doesn’t have diff support, but it does format ActionScript, Java, PHP, and Python using Igor Dimitrijevic’s phat Flash Text Formatter. Using Kevin Lynch’s deep linking, you can get a URL so you can send it to your colleagues’, and they can paste it into the browser and see your code that you posted.
Any comments, problems, or suggestions let me know!
- No code in there currently to get around Firewalls via HTTP Tunneling.
- Sometimes, Firefox’s URL does not update when you click on a code posting.
- Sometimes the view doesn’t change to show the code you just posted.