New Version of jsbin.com
jsbin.com
jsbin.com
The big change in jsbin is the live aspect:
* Start typing, your code is saved and continues to save as you type.
* As you type the live output is updated automatically.
* Open the the full preview url (without /edit) in any other window - be it browser or mobile phone, and that will update in real-time too. So you can edit on your desktop, and the rendered output will appear on you mobile devices.
* If you share the url with /watch on the end, people can watch what you type in real time.
More detail will be in the post later today. I'll try to answer more questions here if they come up.
It also continues to be completely open source: http://github.com/remy/jsbin - so welcoming any contributions :)
What's the library/service you're using to do this? I recall finding a reference in the JSBin source, but please remind us. I would love to get live previewing working in my web design web application, Edit Room, which also has shareable review links. (link in profile).
The client code (for both remote rendering & codecasting): https://github.com/remy/jsbin/blob/master/public/js/spike.js
The server side: https://github.com/remy/jsbin/blob/master/lib/spike/index.js
Very simple, but requires an event based server - so Node was the obvious choice for JS Bin.
*edit:
This frustrates me so much on jsfiddle and I'm guessing it's a default browser formatting thing but why don't you guys make the curly braces NOT leap forward from where my cursor is?
Example : http://i.imgur.com/mZXTO.png
But I'd understand if that's not an acceptable answer for you.
That's to e.g. return an object though.
On the other hand, allman with anonymous functions? That's completely bonkers-looking.
However, if you open the devtools console in your browser, and run: `jsbin.settings.editor.smartIndent = false` it'll disable the indenting. The setting is sticky, so you it should remain whilst the data is stored against the browser.
There's a couple of others, and docs will be coming soon. In addition, there's an exposed API that allows you to point JS Bin to a JSON file and it'll load in and save those settings - which is useful for starting a class for teaching where you want the editor in the same mode across all the students.
Nice to see it even lets you use CoffeeScript, LESS, and some other compile-to-js and compile to CSS languages that I hadn't heard of (Traceur and Stylus?).
Also seems like a nice UI. Might try it out as an alternative to JSFiddle for a bit.
I clicked on it this morning and it loaded the welcome article on the right and html on the left. Good shit!
It seems like it's a JSFiddle-like editor, with a better (in my opinion) user interface, and potentially better options for sharing, not that I'm totally familiar with JSFiddle's capabilities.
I haven't used jsbin before, but the interface looks nice, and the redesign is pretty. Jsfiddle is utilitarian; jsbin looks like it is meant to have a little more humor. They both seem to cover the same functionality, so I guess it comes down to which interface you prefer.
For quickly sharing some small piece of front end code with a remote colleague, either one of these tools is very useful.
Edit: I just noticed that visiting jsbin.com skips the whole landing page with the spinning robot, so it seems that it is as utilitarian as jsfiddle.
One question though: why is my download button grayed out?
I know jsFiddle, CodePen, cssdeck and Mozilla thimble. Does anyone know any other site?
It's not as feature rich as jsFiddle or JS Bin (it only allows editing the javascript, not HTML or CSS), but is different in that it's geared towards canvas animations and games. You can edit an init function that gets called at the beginning of an animation, but the rest of the code gets executed inside a draw loop, allowing you to modify code as the program is executing.
Another difference is that you can modify magic numbers in the code using a GUI. Selecting a number brings up a slider that allows you to change it, and selecting a color brings up a color picker.
Love the "Convert to" feature with HTML, CSS & JS