dabblet

blog

Text

View all panes at once and other updates

One of the most frequent requests I get for dabblet is being able to see CSS, HTML and Result all at once, similar to how JSBin and JSFiddle work. As you probably know if you’re following this blog, I was planning to allow full customization of the number and layout of the tabs, and I’ve already implemented this in the experimental branch (albeit a bit buggily).

However, something inside me was preventing me from polishing it and pushing it to the main branch. Sometimes, allowing full customization is not the best option. It’s usually just an excuse to help UX designers avoid hard dilemmas. Who can blame them, after all, there will always be users that will disagree with any possible decision and I can understand trying to avoid that by giving full power to the user. 

However, one of the basic UX principles is that what users ask is not always what they want. Giving this kind of power to users adds clutter. Clutter that can be avoided with decisions that will please the vast majority of users, even if some of them will dislike them. The fewer settings an application has, the less users will feel utterly lost while trying to configure it. I strongly believe that a setting should be a last resort, only after there is sufficient evidence that there is no decision that will please most users.

So, I decided today to simply add an “All” tab, which would display all panes at once, and delay full customization (indefinitely? Honestly, I don’t know). It shows all three panes in every view (separate, vertical split, horizontal split) with a different layout in each. The following screenshot is from the “separate” view. Since there was nothing sensible to do for that tab in that view, I picked something that seemed useful:

While I was at it, I added transitions on the panes, so that they animate when switching views or tabs.

Another change I made is that the “Behind code” mode was removed from views and is now a checkbox that applies to every view:

I didn’t add code for backwards compatibility with existing dabblets that used the old “Behind code” view, as those are very few and it’s super easy to update them.

Another small change is that now, in large screens where the top bar doesn’t autohide, the tabs are now contained inside the top bar rather than being on top of the panes:

Important: To fully get the changes you may need to hard refresh (or delete cache) and perhaps even change the view mode at least once, to clear incompatible stored settings. Yes, I could spend some time to save you from that hassle, but I guess you prefer me to spend my time in making dabblet better, right? :)

Hope you like the changes. Please note that like every update, there might be bugs at first, so I’ll be waiting for your bug reports.

Tags:
Text

Always visible menu bar for larger screens

One of the most frequent complaints I get about dabblet’s UI is that the top menu bar auto-hides.

This saves a lot on vertical space (and looks nice when closed), but I can see how it can be annoying. However, I hate preferences creep more than anything, so I was reluctant to add an extra setting for that, even when others did it for me

However, today I came up with an idea: You don’t really need this kind of space parsimony on large screens, do you? In those cases, being easy and quick to use are more important than saving screen real estate, which we have an abundance of. So, I used a simple media query (@media (min-height: 799px) and (min-width: 1000px)) which makes the header always visible when active (i.e. on large enough windows). :)

Tags:
Text

Linking to individual revisions

You can now link to individual dabblet revisions, which is ideal for tutorials. Check these revisions of the same dabblet:

http://dabblet.com/gist/1695733/c68f732103cd030eda63ce3ba8bdbc88c4463ee4
http://dabblet.com/gist/1695733/a82c6bbf13a1fbd9ec56141b16504060ec98a57c 
http://dabblet.com/gist/1695733/1e949dd3c1566124ef606cacd7fa8b5564502365
http://dabblet.com/gist/1695733/a60ee572806770e2dd19ff33a10d3aef3c138d63
http://dabblet.com/gist/1695733/4745f5592f273fd96a6ea1255ac6959dbf310c43
http://dabblet.com/gist/1695733/ed2e6efc272146f3d728e65341f4f51a91e65e03 

To find the version hash of each revision, you have to visit the gist page (by clicking “View gist” on the menu) and click on the revision from the sidebar:

Then, take a look at the URL, the hash will be there, after the gist ID.

Of course the same functionality applies to the server-side generated results. Example: http://dabblet.com/result/gist/1695733/1e949dd3c1566124ef606cacd7fa8b5564502365

Tags:
Text

Dabblet’s first month in review

Dabblet turned one month old four days ago, on January 15th. The response from the community has been overwhelming, thousands of people are using it daily to create and share CSS and HTML experiments and in some cases even entire website templates.

As for the numbers, dabblet got 4K unique visitors on its first day and 11K on its second. During its first month, it got a total of 65K unique visitors and 90K visits. It also got almost 600 twitter followers. At least 845 tweets were linking to it.

I’d like to thank you all for your support, and I promise I will do my best to keep improving dabblet.

Text

Dabblet update: URL & Entity previewers, subtle scrollbars and more

I decided that rather than working on a separate experimental branch and eventually merging the whole thing with the mainstream version of dabblet, to keep them both separate and integrate features from the experimental branch once they mature.

So, today I’ve integrated some features that seemed stable enough in the private beta:

  • URL & entity previewers
  • Nicer scrollbars in Webkit. Julien Cabanes helped with that by figuring out a clever way to give spacing between the scrollbar and the edge of the editing area.
  • Nicer checkboxes in Webkit
  • Help is now a separate section, in order to make the actual application lighter
  • Changed the save icon to something more current than a floppy disk
  • Ampersand in font stack previews
  • Font stack previews now show both normal and italic font-styles, since many fonts are entirely different when italicized (especially serif fonts).
  • Transitions for showing and hiding the previewers
  • More polished transitions for the tabs
  • More robust header positioning
  • “New dabblet” menu command moved to top to match established conventions
  • Removed annoying confirmation popup before the page was closed. It didn’t serve any purpose anyway, as unsaved edits are saved in localStorage anyway.
  • A number of bug fixes

Sadly, line numbers and tab templating didn’t make it. I think they need to be tested a bit more, as they involve major code changes.

Hope you like the changes! As always, please report any bugs on dabblet’s bug tracker.

Photo
Coming in dabblet v1.1: Current line highlight & number. I think most use cases of line numbers are covered by knowing the current line number (McRabbit’s Espresso knows this, and dims the other line numbers a lot), so I can avoid adding that kind of clutter. 

Coming in dabblet v1.1: Current line highlight & number. I think most use cases of line numbers are covered by knowing the current line number (McRabbit’s Espresso knows this, and dims the other line numbers a lot), so I can avoid adding that kind of clutter. 

Tags:
Text

URL and entity previewers in upcoming dabblet v1.1

URL previewer

A URL previewer was a very common request. I had my qualms at first but I decided it’s useful enough to outweigh the disadvantages. It should work for everything displayable in an <img> element, including SVGs and data: URIs.

Entity previewer

Along with that, I’ve also implemented an entity previewer, which is useful when you’re not sure whether you remember an HTML or CSS entity correctly.

Photo
New feature in upcoming dabblet v1.1: Complete control over number and layout of tabs. The &#8220;template&#8221; accepts a syntax similar to what the grid-template property does, assuming r is for the result pane, c is for the CSS pane and h is for the HTML pane.
The &#8220;see through code&#8221; option will make the result full-size and the code will have a transparent background through which the result can be seen. Similar to current &#8220;Behind code&#8221; view but more customizable.

New feature in upcoming dabblet v1.1: Complete control over number and layout of tabs. The “template” accepts a syntax similar to what the grid-template property does, assuming r is for the result pane, c is for the CSS pane and h is for the HTML pane.

The “see through code” option will make the result full-size and the code will have a transparent background through which the result can be seen. Similar to current “Behind code” view but more customizable.

Tags: