Where should I keep my Racket snippets?
You’re working on Racket code that you’d love to share with others.
That function is pretty sweet, I bet others would like to see it. Or perhaps you’d like to make a quick scratch file and evaluate your Racket code online. What’s the best Racket-y way to do that?
Among the various pastebins out there, the best Racket-specific option is pasterack.org. This service, provided by Stephen Chang, offers a number of great features:
- evaluation of Racket code
- connection to the #racket channel on IRC (a bot will notify the #racket channel that there’s a new paste)
- copy-and-paste embedding (embed code on your web site)
- the ability to look at the underlying source code (it’s worth taking a look in detail to see how a rather non-trivial web service in Racket is written)
- Racket-appropriate syntax highlighting
- presentation of graphics is possible (see, for example, graphics and plots)
- tweeting pastes
PasteRack currently lacks some features other pastebins have. It currently does not offer:
- deleting pastes
- forks (the feature called
forkcreates a new paste and prefills the source code text area with the code of the forked paste)
- accounts (thus, all posts to PasteRack are effectively anonymous)
If there’s a feature you’d like to have, you’re welcome to create an issue. Or, if you’re feeling industrious, you can even extend the code and submit a pull request.