The weekend before last (28-Sep 2008) I blitzed through an idea I had on the shelf for about 6 months and put it live under the name JS Bin.
What is it?
A short list of features:
- Save private snippet
- Remote Ajax debugging
- Snippet URLs run entirely on their own (i.e. without the JS Bin framework around them)
- Support to quickly inject major JS libraries
- Saves state within the open window (i.e. refresh and the code doesn't reset)
In addition, any code snippet can be edited.
...to edit it, you just add '/edit' to the URL and you can modify the snippet yourself and save it as new:
I had a conversation with Rey Bango some months ago where he was trying to debug a piece of code that had an Ajax hit. He sent me the code, but without seeing it running I wasn't too much help to him.
I made a start some time ago offline and planned for a system to allow you to create fake Ajax handlers to respond to requests.
A small server side php file does the saving work (and maintaining old code snippets) and over the course of a few hours I had a fully working webapp that allows me to create Ajax responders and code snippets that run live and can make real Ajax calls.
I've recorded a couple of screencasts showing how it can be used:
If anyone has suggestions, feedback, bugs, etc - please let me know!
📚 Read more: the latest post or a random post.