Code Dumper

Code Dumper is a personal project of mine that I’ve used to practise some new skills on.

It’s a code dumping repository with a couple of features that I think makes it unique from the other code bins. Where possible, I’ll blog about how particular aspects of the project so that they can be re-used – I’ve already done this with it’s OpenID implementation.

Why Create Another Code Bin?

I started off using Snipplr, but got frustrated with some of the functionality that didn’t seem quite as smooth as it should be. Then it was redesigned and I found it really hard on the eye (regardless of being able to switch from small to large).

I wanted a code bin that was super easy to use and I could provide a full feed of the code dumps to friends or colleagues.

There are other pastie bins which simplify the process right down, but I couldn’t keep a complete record of my code snippets.

So Code Dumper, previously known as Todged came about.

How is it Better?

These were all features I found desirable:

  1. Start saving code from the get-go.
  2. OpenID for login – no faffing around with registering. It’s there to be used. If you use OpenID, new code snippets are linked to your account. If you never log in, that’s fine too.
  3. Tab and untab support in the edit. If you highlight the lines, and hit tab, it will indent the code.
  4. Super easy URLs. They’re designed to be pronouncable if you don’t specify them yourself, or if you enter a title, the page will try to generate the URL based on the title (give it a try) or you can specify it entirely yourself, e.g. http://codedumper.com/generic-menu-layout
  5. Even better URL features are the line highlighting. If you select (or control+select) the lines in the code snippet, it will update the permalink to highlight those lines. So you can email your colleague the particular lines you want them to look at: http://codedumper.com/password-generator-js#2-3,9,23
  6. Automatic (attempt) to grab your avatar without any input from you (I’ll blog about that soon).
  7. I hate the typical captchas, I find them pretty hard to determine against the image backgrounds they sometimes have – so when you log in for the first time, there’s something different in place.
  8. Undelete. If you’ve got an account, and you delete a code snippet, it’s never really gone. It’s stored in the attic for retrieval.
  9. Copy to clipboard – that does just that, no popup windows requires or selecting an’ stuff!
  10. Auto-de-indent. If you save your code, and it’s already indented, it will save the code at the lowest tabbed (or spaces) delimiter.

I’ve always had more plans for the app, but business beckons and I’ve got another project I’m working on quietly behind the scenes to help designers.

I’d love to hear any feedback you might have.

5 Responses to “Code Dumper”

  1. Good idea, especially like #5 as I like to show people the entire code block when describing my problem. Will be using this from now on :)

  2. Hey, great app, noticed however that you’re using the date code for month rather than minutes in your time stamps. I’ve fallen for that one many a time! ;)

  3. @Will – cheers for the compliment. Though I’m not sure what you’re referring to on the date. I thought it was the date next to the title – but it’s correct for me.

    In fact, it’s in GMT time, do you think it might be that that’s causing some confusion?

  4. Remy, check this page http://codedumper.com/latest every submitted code snippet was submitted at 5 mins past the hour, unless it’s a remarkable coincidence, I think you want to use ‘i’ rather than ‘m’ in your php date() code!

  5. @Will – spot on! Cheers – now fixed :-)

Leave a Reply
Not required

CODE: Please escape code and wrap in <pre><code>, doing so will automatically syntax highlight