public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Joshua Saddler <nightmorph@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] [Gentoo Phoenix] an official Gentoo wiki
Date: Sun, 4 Apr 2010 12:33:23 -0700	[thread overview]
Message-ID: <20100404123323.1689e9d4@angelstorm> (raw)
In-Reply-To: <y2pe117dbb91004040823q464c466fj3ae2770394123035@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 5507 bytes --]

On Sun, 4 Apr 2010 17:23:54 +0200
Ben de Groot <yngwin@gentoo.org> wrote:

> As has been pointed out, your table example was unfair, as they don't
> do the same thing. I would frown on such inline styling (that's what
> stylesheets are for), and there are a number of ways you can markup
> tables in wikis. One is to allow HTML tags, so it would be very much
> like GuideXML. Another one, which I prefer personally, is to use
> reStructuredText, which is even clearer than HTML markup.

Having to write a custom stylesheet just to get one wiki page to do what you want is pretty dumb.

How is it unfair? Because tables really are so much simpler to write in GuideXML? Here's a more complicated table:

http://www.gentoo.org/doc/en/xml-guide.xml#doc_chap2_sect10
source: http://www.gentoo.org/doc/en/xml-guide.xml?passthru=1

> > By moving to a wiki, you'll lose a huge percentage of what GuideXML can do,
> 
> I don't see that at all. Is there any essential feature of GuideXML
> that is missing in MediaWiki? (Let's take that wiki implementation as
> the most likely one we will adopt.) I haven't seen anything yet that
> is impossible or very difficult to do. Do you really think that
> GuideXML is so special and advanced that nobody else had the same
> needs and that major wiki engines do not provide in those needs?

Mediawiki mostly involves memorizing how many quote or tick marks you use. This markup is *completely nonsemantic*. In GuideXML, you know EXACTLY what each tag means. It's semantic. <ul> starts an unordered list. <ol> starts an ordered list. <li> is a list item. <b> for bold text. <e> for emphasized text, similar to XHTML's <em> tag. <table> to start a table.

Mediawiki requires you to memorize numbers of marks to achieve the same effect: two ' ' for italic text, three ' ' ' for bold, five ' ' ' ' '  for bold AND italic.

Now take a look at the section on Mediawiki lists: whitespace becomes part of your formatting. Lame. At least with GuideXML, you can use whatever whitespace or linebreaks you want to keep code human-readable, and know that it won't affect the rendered version.

Oh, *and* you have to prefix Mediawiki list items with ; and : , which is completely nonsensical and arbitrary. The character doesn't explain what it's for, unlike semantic XML tags.

Take a good look at the Mediawiki "mixture of lists" sample:
(I'd provide a direct link, but there's no built-in way to snap to it)
http://www.mediawiki.org/wiki/Help:Formatting

That is just plain ugly. The eye has a hard time unjumbling the ##s and ;:* crammed together. Also, note another flaw of Mediawiki:

At any time, you can throw in HTML and CSS to do stuff, because apparently Mediawiki isn't flexible enough on its own to generate your desired rendering. Having to mix HTML with a totally different wiki syntax is stupid. Having to learn CSS *on top* of learning wiki syntax (and HTML) just to write a document is retarded.

You've tried to make the case that learning GuideXML is too hard, but in order to use Mediawiki you'd need to learn at least 3 languages.

In my earlier email, I shared a code sample of GuideXML tabls. Mediawiki's idea of tables?

{| to start. |+ for a caption. |- for a row. ! for headers, and | for data. Use more || symbols for more rows.

Seriously, what part of this is easily understood to be table markup?

*And* you can mash in XHTML attributes to style the text. Big no-no. Leave the styling to a separate stylesheet, and let the code just be code.

Yeah, since Mediawiki tables can accept straight-up CSS (another skill you had all better learn if you're going to write valid code, apparently), you *can* do a bit more color formatting than with our existing XSL rules for GuideXML. I'll grant you that.

But that's at the price of standardization: since arbitrary tags and markup is allowed, there's nothing to keep consistency between documents, or even within the same document. GuideXML at least has a clean, consistent visual representation. Once you start allowing arbitrary markup, there'll be a million and one ways of representing the same thing, and that's not good for someone trying to wade through documents. There *should* be a standard way of representing information.

> And if you really wanted to, you could easily write an extension to
> parse GuideXML, so it could be used as wiki markup. So again, the
> markup is not really an argument against using a wiki instead of our
> current GuideXML+gorg setup.

Except I haven't seen Mediawiki offer anything like our textual color palette or other code syntax and block-level formatting flexibility.

> 2. It is a non-transferable skill. You can't use it anywhere else.
>    And unless you are a regular GuideXML writer, you will have to
>    look up its particular usage almost every time you do use it.

It's just XML. That's all. If you can write HTML, then you can write XML. XML is *easier*. It's got far fewer tags, for starters. That means much, much less to learn.

Oh, and guess what? You ebuild writers are already using XML every single time you make changes to ebuilds: metadata.xml, etc.

Most of us have used GuideXML at some point or another in our /proj/ webpages and devspaces, if not in /doc/en/. Guess what? That's the same XML, and there's much, much more content constantly written for /proj/ and dev.g.o than for /doc/. So don't try to tell me that people don't have at least passing familiarity with it.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2010-04-04 19:33 UTC|newest]

Thread overview: 84+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-03 13:19 [gentoo-dev] [Gentoo Phoenix] an official Gentoo wiki Ben de Groot
2010-04-03 13:40 ` Dror Levin
2010-04-03 14:12   ` Tobias Scherbaum
2010-04-03 14:36     ` Ben de Groot
2010-04-03 23:41       ` Sebastian Pipping
2010-04-03 15:03   ` Nathan Zachary
2010-04-03 17:40   ` AllenJB
2010-04-03 18:56     ` George Prowse
2010-04-03 19:04       ` Alex Legler
2010-04-04 23:19       ` Ben de Groot
2010-04-10  4:10         ` William Hubbs
2010-04-10 11:55           ` Ben de Groot
2010-04-10 12:06           ` Dror Levin
2010-04-10 15:25             ` William Hubbs
2010-04-10 15:40               ` George Prowse
2010-04-10 17:18                 ` William Hubbs
2010-04-10 18:11                   ` [gentoo-dev] " Duncan
2010-04-10 18:26                     ` René 'Necoro' Neumann
2010-04-11  9:52                       ` Duncan
2010-04-11  3:05                   ` [gentoo-dev] " Patrick Nagel
2010-04-10 18:04               ` Vincent Launchbury
2010-04-10 19:23                 ` Dale
2010-04-11  4:35                 ` William Hubbs
2010-04-14  2:03                 ` George Prowse
2010-04-10 13:35           ` George Prowse
2010-04-11  1:08             ` Jorge Manuel B. S. Vicetto
2010-04-03 14:04 ` Guy Fontaine
2010-04-03 14:12   ` Ben de Groot
2010-04-03 15:25   ` Sylvain Alain
2010-04-03 14:30 ` Alex Legler
2010-04-03 14:46   ` Ben de Groot
2010-04-03 23:37     ` Sebastian Pipping
2010-04-04  1:20       ` Ben de Groot
2010-04-04  7:31         ` Joshua Saddler
2010-04-04  8:29           ` Arun Raghavan
2010-04-04  8:47             ` Sebastian Pipping
2010-04-04 12:26               ` Ben de Groot
2010-04-04  8:48           ` Antoni Grzymala
2010-04-04  8:54             ` Sebastian Pipping
2010-04-04  9:10             ` Alex Legler
2010-04-04 12:31             ` Ben de Groot
2010-04-04 16:54               ` Antoni Grzymala
2010-04-04  9:01           ` Alex Legler
2010-04-04 10:35           ` AllenJB
2010-04-04 13:43           ` Sylvain Alain
2010-04-04 14:15           ` Dror Levin
2010-04-04 14:33             ` AllenJB
2010-04-04 14:47               ` Dror Levin
2010-04-04 15:13                 ` AllenJB
2010-04-04 15:36                   ` dev-random
2010-04-04 15:39                     ` Ben de Groot
2010-04-04 16:08                   ` Ben de Groot
2010-04-04 22:45                   ` Zeerak Mustafa Waseem
2010-04-04 22:21                     ` AllenJB
2010-04-04 23:11                       ` Ben de Groot
2010-04-05  1:36                       ` Zeerak Mustafa Waseem
2010-04-04 16:00               ` Ben de Groot
2010-04-04 15:23           ` Ben de Groot
2010-04-04 19:33             ` Joshua Saddler [this message]
2010-04-04 19:46               ` George Prowse
2010-04-05  0:08               ` Ben de Groot
2010-04-05  1:13                 ` Joshua Saddler
2010-04-05  2:43                   ` Ben de Groot
2010-04-05  5:04                     ` Arun Raghavan
2010-04-05  5:05                       ` Arun Raghavan
2010-06-07 12:27                     ` Ed W
2010-06-07 12:19           ` Ed W
2010-04-04  9:30       ` Alex Legler
2010-04-03 19:13 ` Alex Legler
2010-04-03 23:44 ` Sebastian Pipping
2010-04-05  0:02 ` Alistair Bush
2010-04-05  0:25   ` Ben de Groot
2010-04-05  4:46     ` [gentoo-dev] " Duncan
2010-04-05  0:37   ` [gentoo-dev] " Matti Bickel
2010-04-05  2:01 ` Jorge Manuel B. S. Vicetto
2010-04-05  3:02   ` Ben de Groot
2010-06-03 20:44 ` René 'Necoro' Neumann
2010-06-03 22:49   ` Ben de Groot
2010-06-04  3:53     ` Tobias Scherbaum
2010-06-04  4:52       ` Sebastian Pipping
2010-06-04  5:51       ` [gentoo-dev] " Torsten Veller
2010-06-04  8:12         ` Markos Chandras
  -- strict thread matches above, loose matches on Subject: below --
2010-04-04  0:11 [gentoo-dev] " Sylvain Alain
2010-04-04  0:24 ` Sebastian Pipping

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100404123323.1689e9d4@angelstorm \
    --to=nightmorph@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox