On Mon, Jan 16, 2017 at 1:47 AM, Chris Mills <
cmi...@mozilla.com> wrote:
>
> > On 14 Jan 2017, at 19:47, Sebastian Zartner <
sebastia...@gmail.com>
> wrote:
> >
> > Hello Will, hello everyone!
> >
> > Thank you for creating those alternative pages, Will!
> > From a first view, I like version 2 of the JS API alternatives and
> versions
> > 2 and 6 of the CSS property alternatives.
>
> I prefer version 2 of the JS page too — I think having the wealth of more
> complex examples hidden behind the "more examples" link is really good, as
> it makes the page shorter and less daunting. We’ll obviously have to sort
> out the TOC discrepancy, but surely we can get a little tiny bit of FED
> help for this.
>
> I am not sure what I prefer in terms of the CSS pages. I think any kind of
> simple up-the-top example is an improvement, but I also feel that the pages
> are still quite daunting. (The advanced details box and formal syntax stuff
> is scary to beginners and most people won’t need this that often.)
>
> I think realistically the two things people will want the most are
> examples and browser compat data, so could we put those right up the top,
> and then have everything else following?
>
> The advanced details and formal syntax stuff could perhaps be put under an
> “Advanced details” heading of some kind, and more in-depth examples could
> be put under a hidden section, like in the 2nd JS page.
I agree that it's worth testing designs like this. We should be clear
though that this is extending the scope of this project, which was
originally focused on "examples on top". I think it's Kadir's call whether
this should in in scope. If it is I can prepare some designs that include
this option.
One extra point about moving compat tables to the top: possibly the real
wasteland for content is not the end of the page, but the middle. If compat
tables are at the end of the page, they're always in a known location and
the user can quickly get to them using "End" or Cmd+down arrow. If they are
near the top, but after examples, then the user needs to scroll (a variable
amount, depending on the size of the examples) to find them. But this is
speculation, and should be resolved through testing :).
Another related point: if people are used to finding compat tables at the
end, it may be a difficult adjustment for them if we move the tables. This
suggests that we should have usability regression tests for current MDN
users.
>
> Another thought - W3Schools has the examples hidden on separate pages.
The depends what you mean by "examples". They have static examples on the
same page, but link to a different page for the interactive version: "Try
it Yourself".
> Do we like the sound of that, or should we keep the examples on the same
> page? I quite like the idea of having the advanced examples separated off
> onto standardized examples pages, with sandboxes, etc.
>
Do you mean, keep all interactive examples on different pages, or just "the
advanced examples"? If the latter, what counts as an "advanced example"
(for CSS, say)? Currently we already have a lot of examples living on
separate pages (e.g.
https://developer.mozilla.org/en-US/docs/Web/CSS/transform#Examples).
>
> >
> > Furthermore, here are a few quick unsorted thoughts on this topic:
> > Generally, I think playable examples are the best way to show what an
> API,
> > a property, an element, etc. can be used for. Those examples should be
> kept
> > minimal, though, i.e. they should not extend 10-15 lines of code.
>
> I also agree with this. Having a standard minimal editable example at the
> top of each page with an output pane would be really cool + useful.
>
I'm a bit confused by this comment. Isn't that exactly what you have here:
https://developer.mozilla.org/en-US/docs/User:wbamberg/Examp
les_on_top/border-top-color_-_Version_6 ? So are you saying:
* "*this thing in variant 6 is* really cool and useful", or
* "*some other thing would be* really cool and useful"?
If the latter, what's the difference between what's shown in variant 6, and
the "some other thing"?
>
> > For CSS properties, maybe the syntax examples (the <pre> block at the
> start
> > of the "Syntax" section) could be made available there, e.g. via a
> > suggestions list.
> >
> > I also like the idea of providing the more advanced examples via a "More
> > examples" link.
>
> +1
>
> > As the syntax examples on CSS pages can be quite long, maybe they should
> > also be moved there to save some vertical space.
> > Or they could be put behind tabs, where each tab covers one group of
> > values. For example, the syntax examples for the mask property[1] would
> > then be split into "Keyword values", "Image values", "Combined values"
> and
> > "Global values”.
>
> Hrm, a tabbed interface isn’t a bad idea for keeping space down. Maybe for
> advanced details, formal syntax, and those other scary details?
>
This is starting to sound like a complete redesign of these pages.
If we want to do this, we need to get proper UX and front-end development
help to build these new examples. We'll not be testing anything in February.
Do we want to do this?
Will