Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Re: List structures

Reply
Thread Tools

Re: List structures

 
 
dorayme
Guest
Posts: n/a
 
      03-17-2009
In article
<1iwp1pb.1qpnyo8o3ccqvN%real-not-anti-spam->,
real-not-anti-spam- (D.M. Procida) wrote:

> dorayme <> wrote:
>
> > > Which do you prefer, the nested list version:

>
> > > or the headered version:

>
> > > I think the former is to be preferred, but I can't see a tremendous
> > > reason for preferring one over the other.

> >
> > Well, you should not prefer the first to the second because the first is
> > all wrong and would make a doc invalid.
> >
> > Fix it up and then I will tell you which is to be preferred and why.
> > This offer is open for 21 days. But do not delay too much, my shop is
> > very busy and the stock goes in and out quickly. <g>

>
> All right then, apart from the typo, which do you prefer?
>


OK, I am suitably chastized. Did not look closely! <g>

First markup: <http://dorayme.netweaver.com.au/markup1.html>

Second markup: <http://dorayme.netweaver.com.au/markup2.html>

Well, one thing we can say is that the first markup is simpler than the
second in that it uses one actual element to make do for what the second
uses four. If you are impressed by Ockam's Razor, you will surely use
the first. It elegantly and simply and less disjointedly represents the
structure inherent in what you are saying.

Let's suppose that more than a monk's thoughts from about 800 years ago
is needed before a final decision. Here is more.

It is almost always a good idea in these matters to compare the choices
you face in the event of your author style sheet being not available and
a default used by the browser.

If the browser does use its styles then both choices have their
strengths and weaknesses on mere presentational grounds in tests that I
have conducted. The all one list is neat and understandable, the meaning
is represented by indentation and differential bulleting. Personally I
feel the lack of font-weight in the primary list items does not help out
enough and I am irritated by the primary list item bulleting. But the
meaning is terribly clear!

In the more profligate second version, this lack of font-weight is made
up for. But that is the trouble, it is made up with too much of a
vengeance and second order headings are awfully big. Not only that, the
vertical spacings between headings and lists are too big and ugly. On
the other hand, the lack of bullets for the headings is nicer than the
sight of the first order bullets in the first mark up imo.

I would say on aesthetic grounds alone, the first markup wins by half a
length.

But presentation is *everything* when it comes to human observers'
appreciation of meaning and there is more than aesthetics involved. If
your list is longer than the example, and let us suppose it is so we can
answer a more general query, then the first would win hands down on
communication in visual browsers because it better uses the screen area.
If a user can get your content with less scrolling and effort then they
get the meaning better. Simple as that. On this ground, again, the first
markup wins.

I will discuss the issue under the assumption that maintenance and
author styling efforts are important factors if you really want. But
perhaps this will do for now.

I desist for the moment telling you about a wonderful and apt third way
to organise your lists in a table, but we should keep it in mind as a
player when complex lists are involved.

--
dorayme
 
Reply With Quote
 
 
 
 
dorayme
Guest
Posts: n/a
 
      03-17-2009
In article <doraymeRidThis->,
dorayme <> wrote:

> In article
> <1iwp1pb.1qpnyo8o3ccqvN%real-not-anti-spam->,
> real-not-anti-spam- (D.M. Procida) wrote:
>
> > > > I think the former is to be preferred, but I can't see a tremendous
> > > > reason for preferring one over the other.


>
> First markup: <http://dorayme.netweaver.com.au/markup1.html>
>
> Second markup: <http://dorayme.netweaver.com.au/markup2.html>
>
>
> I desist for the moment telling you about a wonderful and apt third way
> to organise your lists in a table, but we should keep it in mind as a
> player when complex lists are involved.


Here is a third type of way, it still does not beat the sheer clarity of
the first markup but only because the default styles are so severe! I
have no real idea why default style sheets do not put a modicum of
padding and border and border-collapse in. So I put this in to show what
the bare minimum of style would make it look like.

Third markup: <http://dorayme.netweaver.com.au/markup3.html>

Looks pretty clear to me and if default styles were better thought out
along the lines you can see, I would say this is best of all to
communicate the event schedule at least in visual browsers. I welcome
comments about the effects for other modalities.

Note that if you remove the author styles in this table markup, it
simply looks shithouse and markup1 wins yet again! That markup 1 is
quite a thoroughbred, no?

I think it is a very telling mistake of browser makers to adopt a
default style sheet that does not include the bare minimum of styles I
include above. To me, it says loud and clear: we do not really
understand the function or semanticity of tables!

Or is it, oh gee... no... a sheer yellow streak, a miserable cowardly
giving into the table layout brigade! This perfectly fits their crime.
Folk who use tables for sheer page layout and not for organizing lists
would not want borders by default! Poor lambs, they would have to
actually remove default borders. I am disgusted! <g>

The meaning of a table is best brought out by a few simple borders and a
modicum of padding. This presentation is part and parcel of user
understanding. Here is a case where open mindedness is simple mindedness
or sheer wickedness as per above.

The border in a default situation is quite important for human
recognition of what is going on, meaning-wise in a table properly used.
For so called tabular data, or, as I prefer, as a way to organise lists
and bring their relationships out to human observers.

This does not mean I advocate borders full stop. Authors can use their
judgement. With suitable cell spacing and/or padding and sometimes
elegant backgrounding, no-border is a *perfectly* good option. But in
the default situation, it is an almost perverse thing to leave out. If
you don't believe me, remove my styles completely and see how awful and
mildly confusing it looks in FF, to take an example.

--
dorayme
 
Reply With Quote
 
 
 
 
D.M. Procida
Guest
Posts: n/a
 
      03-17-2009
dorayme <> wrote:

> > All right then, apart from the typo, which do you prefer?
> >

>
> OK, I am suitably chastized. Did not look closely! <g>
>
> First markup: <http://dorayme.netweaver.com.au/markup1.html>
>
> Second markup: <http://dorayme.netweaver.com.au/markup2.html>
>
> I would say on aesthetic grounds alone, the first markup wins by half a
> length.


I think we should disregard the aesthetics - we can change the
presentation any way we like.

If for some reason the user isn't seeing styles, then it could be
because they've chosen that, or because they can't (maybe they're blind)
- either way, they're used to seeing content like that, and more
importantly, the nested list structure gives more clues about the
relationships within its contents.

That's why I prefer the first way.

The downside is that more CSS is required, and the application of a
suitable class falls to the author, in order to improve the appearance
in most contexts.

> I desist for the moment telling you about a wonderful and apt third way
> to organise your lists in a table, but we should keep it in mind as a
> player when complex lists are involved.


Your table would be better achieved by using CSS to style the nested
list for you - as long as the author keeps the list at two levels.

Daniele
 
Reply With Quote
 
dorayme
Guest
Posts: n/a
 
      03-17-2009
In article
<1iwpvzi.t602jt13g2dczN%real-not-anti-spam->,
real-not-anti-spam- (D.M. Procida) wrote:

> dorayme <> wrote:
>
> > > All right then, apart from the typo, which do you prefer?
> > >

> >
> > OK, I am suitably chastized. Did not look closely! <g>
> >
> > First markup: <http://dorayme.netweaver.com.au/markup1.html>
> >
> > Second markup: <http://dorayme.netweaver.com.au/markup2.html>
> >
> > I would say on aesthetic grounds alone, the first markup wins by half a
> > length.

>
> I think we should disregard the aesthetics - we can change the
> presentation any way we like.


I was speaking in the context of where author styles were not available.
Aesthetics is not about merely pretty. Aesthetics is good when function
shines through. And we are talking a particular functional bit of a
page, not the whole page.

Preceding my last remark was:

"... the first markup is simpler than the second in that it uses one
actual element to make do for what the second uses four. ... It
elegantly and simply and less disjointedly represents the structure..."

and

"... always a good idea ... to compare the choices ... in the event of
.... a default used by the browser."

>
> If for some reason the user isn't seeing styles, then it could be
> because they've chosen that, or because they can't (maybe they're blind)
> - either way, they're used to seeing content like that, and more
> importantly, the nested list structure gives more clues about the
> relationships within its contents.
>


First, the user *always* sees styles. Don't miss this like troops miss
road-side bombs!

Where no author styles operate, the vacuum is necessarily immediately
filled by a browser supplied set of styles. These styles are very
important communication factors. If the beloved abstract correct element
to use does a worse job to communicate information than what is regarded
by the orthodox as an incorrect or even non-semantic element, then maybe
a different road should be chosen.

I too regard the relationship within content to be important. But the
proof is in the pudding and the pudding is not the HTML, it is in the
results on the countless devices that humans use.

> The downside is that more CSS is required, and the application of a
> suitable class falls to the author, in order to improve the appearance
> in most contexts.
>


Certainly it is an important factor how much CSS fiddling is needed to
bring something up to a fine communication.


> > I desist for the moment telling you about a wonderful and apt third way
> > to organise your lists in a table, but we should keep it in mind as a
> > player when complex lists are involved.

>
> Your table would be better achieved by using CSS to style the nested
> list for you - as long as the author keeps the list at two levels.
>


Are you saying that better than

<http://dorayme.netweaver.com.au/markup3.html>

would be to make markup 1 look something similar?

--
dorayme
 
Reply With Quote
 
D.M. Procida
Guest
Posts: n/a
 
      03-19-2009
dorayme <> wrote:

> > I think we should disregard the aesthetics - we can change the
> > presentation any way we like.

>
> I was speaking in the context of where author styles were not available.
> Aesthetics is not about merely pretty. Aesthetics is good when function
> shines through. And we are talking a particular functional bit of a
> page, not the whole page.


My point was that we can manage the appearance spearately, so we don't
need to worry about that here. As for the functional component of the
aesthetics that can't be dealt with in the styling - well, that's the
list structure question I was aksing.

> > If for some reason the user isn't seeing styles, then it could be
> > because they've chosen that, or because they can't (maybe they're blind)
> > - either way, they're used to seeing content like that, and more
> > importantly, the nested list structure gives more clues about the
> > relationships within its contents.
> >

>
> First, the user *always* sees styles. Don't miss this like troops miss
> road-side bombs!
>
> Where no author styles operate, the vacuum is necessarily immediately
> filled by a browser supplied set of styles.


Not necessarily. The browser provides information to the user about the
content via HTML. Sometimes it does this through styles (bold for
<strong>, big text for headings) but sometimes it simply says "heading
level one".

> I too regard the relationship within content to be important. But the
> proof is in the pudding and the pudding is not the HTML, it is in the
> results on the countless devices that humans use.


No, the proof of the pudding is in the *eating*.

That aside, since humans use countless devices to read HTML, I shouldn't
try to second-guess them - I should follow the same rules that the
devices should be following.

Where the rules need interpretion that isn't dead simple, then I still
think that aiming to understand the rules rather than second-guess the
browsers is the best policy.

> > Your table would be better achieved by using CSS to style the nested
> > list for you - as long as the author keeps the list at two levels.
> >

>
> Are you saying that better than
>
> <http://dorayme.netweaver.com.au/markup3.html>
>
> would be to make markup 1 look something similar?


If that's really a list of events, then yes. But not if it's supposed to
be tabular data.

Daniele
 
Reply With Quote
 
Bergamot
Guest
Posts: n/a
 
      03-19-2009

D.M. Procida wrote:
> dorayme <> wrote:
>
>> Are you saying that better than
>>
>> <http://dorayme.netweaver.com.au/markup3.html>
>>
>> would be to make markup 1 look something similar?

>
> If that's really a list of events, then yes. But not if it's supposed to
> be tabular data.


That is just a list of events. Table markup is illogical because there
is no relationship between the cells in a row, other than the headers.
If it were tabular there would be some kind of relationship between data
cells.

--
Berg
 
Reply With Quote
 
David Segall
Guest
Posts: n/a
 
      03-19-2009
Bergamot <> wrote:

>
>D.M. Procida wrote:
>> dorayme <> wrote:
>>
>>> Are you saying that better than
>>>
>>> <http://dorayme.netweaver.com.au/markup3.html>
>>>
>>> would be to make markup 1 look something similar?

>>
>> If that's really a list of events, then yes. But not if it's supposed to
>> be tabular data.

>
>That is just a list of events. Table markup is illogical because there
>is no relationship between the cells in a row, other than the headers.
>If it were tabular there would be some kind of relationship between data
>cells.


dorayme in her continued crusade to persuade us that black is grey and
white is grey has come up with an arguable example of what you might
define as nested lists that can also be defined as a table. There is
an implied row heading column that could contain the entries "1st
event", "2nd event", etc. To make it more realistic substitute
Morning, Afternoon and Evening for 1st, 2nd and 3rd.
 
Reply With Quote
 
Jonathan N. Little
Guest
Posts: n/a
 
      03-19-2009
David Segall wrote:
> Bergamot <> wrote:
>
>> D.M. Procida wrote:
>>> dorayme <> wrote:
>>>
>>>> Are you saying that better than
>>>>
>>>> <http://dorayme.netweaver.com.au/markup3.html>
>>>>
>>>> would be to make markup 1 look something similar?
>>> If that's really a list of events, then yes. But not if it's supposed to
>>> be tabular data.

>> That is just a list of events. Table markup is illogical because there
>> is no relationship between the cells in a row, other than the headers.
>> If it were tabular there would be some kind of relationship between data
>> cells.

>
> dorayme in her continued crusade to persuade us that black is grey and
> white is grey has come up with an arguable example of what you might
> define as nested lists that can also be defined as a table. There is
> an implied row heading column that could contain the entries "1st
> event", "2nd event", etc. To make it more realistic substitute
> Morning, Afternoon and Evening for 1st, 2nd and 3rd.


Yep, next she might advocate not need for paragraphs in P elements, one
"should" use a one column table for that as well!


--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
dorayme
Guest
Posts: n/a
 
      03-19-2009
In article
<1iwtmle.1qlfwnx1ds6dp3N%real-not-anti-spam->,
real-not-anti-spam- (D.M. Procida) wrote:

> dorayme <> wrote:
>
> > > I think we should disregard the aesthetics - we can change the
> > > presentation any way we like.

> >
> > I was speaking in the context of where author styles were not available.
> > Aesthetics is not about merely pretty. Aesthetics is good when function
> > shines through. And we are talking a particular functional bit of a
> > page, not the whole page.

>
> My point was that we can manage the appearance spearately, so we don't
> need to worry about that here. As for the functional component of the
> aesthetics that can't be dealt with in the styling - well, that's the
> list structure question I was aksing.
>


We cannot manage the the appearance separately in the context of author
styles being off. And it is only in this context that I am talking. I
won't go into it here, but I believe if we *really* could manage the
appearances with author styles, it would not really matter so much how
we marked up, anything to get the appearance needed to communicate with
humans.


> > > If for some reason the user isn't seeing styles, then it could be
> > > because they've chosen that, or because they can't (maybe they're blind)
> > > - either way, they're used to seeing content like that, and more
> > > importantly, the nested list structure gives more clues about the
> > > relationships within its contents.
> > >

> >
> > First, the user *always* sees styles. Don't miss this like troops miss
> > road-side bombs!
> >
> > Where no author styles operate, the vacuum is necessarily immediately
> > filled by a browser supplied set of styles.

>
> Not necessarily. The browser provides information to the user about the
> content via HTML. Sometimes it does this through styles (bold for
> <strong>, big text for headings) but sometimes it simply says "heading
> level one".
>


According to my way of thinking, if a browser causes a voice to say
"Heading level one" and following with the heading content, then that is
a default presentation of that part of the web page. It is a didactic
form of presentation. I believe that HTML markup is only good for its
ability to be a reliable cause of presentation that communicates
information that webpage makers want communicated.

> > I too regard the relationship within content to be important. But the
> > proof is in the pudding and the pudding is not the HTML, it is in the
> > results on the countless devices that humans use.

>
> No, the proof of the pudding is in the *eating*.
>

My phrase is a modern shortened version as befits the wild young modern
thing I am. But I accept the seniority of your version. <g>

> That aside, since humans use countless devices to read HTML, I shouldn't
> try to second-guess them - I should follow the same rules that the
> devices should be following.
>


Under a certain interpretation, I agree wholeheartedly

<http://netweaver.com.au/semantics/whySemanticElements.php>

> Where the rules need interpretion that isn't dead simple, then I still
> think that aiming to understand the rules rather than second-guess the
> browsers is the best policy.


Understanding the rules so that you are practically equipped involves
knowledge of browsers, their defaults, their faults, the likelihood of
device and browser makers understanding what you understand and they
putting into practice these understandings.
>
> > > Your table would be better achieved by using CSS to style the nested
> > > list for you - as long as the author keeps the list at two levels.
> > >

> >
> > Are you saying that better than
> >
> > <http://dorayme.netweaver.com.au/markup3.html>
> >
> > would be to make markup 1 look something similar?

>
> If that's really a list of events, then yes. But not if it's supposed to
> be tabular data.
>

Tables are for displaying lists, from the simplest to the most complex,
and an excellent way to show relationship between list items in
different lists. I use the word "list" in the ordinary English sense of
the word. To use it in an the HTML sense is to beg questions that should
not be begged.

Your original question is enormously interesting to me, Daniele, because
it brings out so many important issues. Thanks for asking it!

I won't bang on here now but I disagree that there is some one "real
structure" of what you wish to communicate. You can see why I favoured
the nested list option. I said why. But it did not include the component
of the one true real structure. I think this is a fantasy of some
website theorists!

I know, I said at the start of my response to your question, "Well, one
thing we can say is that the first markup is simpler than the second in
that it uses one actual element to make do for what the second uses
four. If you are impressed by Ockam's Razor, you will surely use the
first. It elegantly and simply and less disjointedly represents the
structure inherent in what you are saying."

I was talking loosely or, shall we say, without an implication that
there was some one fixed in stone structure. I just meant that you
wanted to let people know when things were on. And I said that I
preferred the first on grounds of simplicity in the one situation we
must always be prepared for, with default styles on. In short, it gets
across what events are on when in a simpler way in this situation.

But there is no inner one abstract structure. If we could rely on author
styles - which we can't rely on - then other markups, such as your
second one or my table example would be fine. At least that is what I am
thinking at the moment. I am happy to consider the matter further and
modify if necessary.

--
dorayme
 
Reply With Quote
 
D.M. Procida
Guest
Posts: n/a
 
      03-19-2009
dorayme <> wrote:

> We cannot manage the the appearance separately in the context of author
> styles being off. And it is only in this context that I am talking. I
> won't go into it here, but I believe if we *really* could manage the
> appearances with author styles, it would not really matter so much how
> we marked up, anything to get the appearance needed to communicate with
> humans.


That's simply not true.

Indexing software, and software that needs to parse structures to
present them to other software or to humans, need properly marked up
content.

> According to my way of thinking, if a browser causes a voice to say
> "Heading level one" and following with the heading content, then that is
> a default presentation of that part of the web page.


That looks like information, not presentation.

Daniele
--
Wanted: TEAC A-2300SX, Akai GX-4000D
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie ? file structures in Dict, List, Tuples etc How len Python 1 12-13-2007 06:12 AM
structures, structures and more structures (questions about nestedstructures) Alfonso Morra C Programming 11 09-24-2005 07:42 PM
Type Casting IPv4 and IPv6 structures to Generic Structures tweak C Programming 14 06-11-2004 02:43 PM
Stack & Singly Linked List Data Structures Patrick McCourt Java 2 05-24-2004 10:55 PM
linked list of structures Andrew C Programming 0 08-11-2003 09:28 PM



Advertisments