Re: two dropdown menus
Matt Kruse wrote:[color=blue]
> Richard Cornford wrote:[color=green]
>> Two years ago I was
>> writing scripts much like you write now[/color]
>
> (first of all, much of the content of my site is not what I'm writing
> "now", but has been there for a while... the latest addition was the
> DHTML tree, which surely follows your design ideals)[/color]
I had assumed that the in-window pop-up code that you recently posted
the URL of was contemporary, as your comments and its appalling
behaviour on Opera 7 gave it the air of a work in progress. I did think
that not taking the opportunity to define the contents of the pop-ups
(at least the non-IFRAME ones) in the HTML on the page was retrograde
after your DHTML tree, but as you have repeatedly express a belief that
needlessly introducing javascript dependencies has no significance that
didn't strike me as out of character.
<snip>[color=blue]
> Considering that some of my code has been used by smany very major
> web sites around the world, and my libraries have been useful to
> literally thousands of web sites and saved the butts of many
> behind-schedule web developers, I think you're being over-dramatic.[/color]
As you have decided to raise this weight of numbers/deployed on real web
sites thing again (when I thought that the reason you did not pursue the
argument last time was that you had spotted how hollow it was) it is
probably worth examining its merits.
The implications of the argument are:-
1. The act of deploying a script on a web site (and/or the
fact that it has been chosen by someone for deployment),
in itself, imbues that script with some additional "worth"
(value, measure of standard/quality or whatever).
2. That additional "worth" is proportional to the number of
instances of the deployment of that script (possibly
weighted by the size, importance, popularity, profitability,
or whatever, or the web sites on which it is used).
It doesn't take much examining of web sites, or knowledge of web site
development, to realise that there is one clear contender for the most
widely used scripts; from the smallest web sites to the largest, by at
least an order of magnitude, the most popular deployed scripts worldwide
are the javascript functions output by Macromedia Dreamweaver.
Dreamweaver functions are so popular that you will often see the same
one defined two or three times on the same page.
So by this measure of quality MM_findObj, MM_swapImage,
MM_swapImgResto re and their friends, are the pinnacle of browser
scripting.
However, the opinion of the Dreamweaver functions most widely expressed
on this group is that they are among the worst scripts ever written and
would be best used to illustrate how not the write javascript. Indeed I
have only ever seen one comment in favour of the Dreamweaver functions
and that stressed nothing but how general they are. A characteristic
that directly results in them being inefficient, which invariably
features in the list of arguments against them.
When a measure of "worth" ranks scripts that informed opinion denigrates
so heavily above all others that criteria cannot be a measurement of
script quality.
<snip>[color=blue]
> So quit the condescending crap. If you were offering up a bunch of
> solutions for thousands of developers around the world to use and
> benefit from, and it was always up-to-date and representative of the
> best coding ideals, then you might be able to criticize.[/color]
By which you are saying that my opinion has no value unless I adopt your
approach to javascript authoring and start doing what you have chosen to
do. But my opinion is that your approach is misguided, so I could not be
expected to adopt it.
To only accept criticism about your approach from people who follow your
approach is one way of disregarding criticism, but it lacks any
reasonable foundation.
[color=blue]
> Offering theory - as you usually do - is much _much_
> _MUCH_ easier than maintaining a web site of examples,
> code, support, and documentation.[/color]
What you see as theory I regard as explanation. I don't see the
distribution of even the very best generalised javascript libraries as
the solution to the lamentable current state of Internet browser
scripting. I perceive promoting an understanding of browser scripting as
a practice, its issues and javascript as a language as much more likely
to have a positive impact in that area. Understanding is best promoted
through explanation.
If you see an explanation of the possibilities as theory then that is a
matter of perception. It doesn't matter that you do; theories can be
refuted if they are wrong, so feel free to refute if you can. Though
bare in mind that if I really am posting speculative nonsense with no
hope of implementation then the fact that I am posting it on Usenet
would normally mean that someone would nave noticed and publicly
criticised me for it (that is what happens on Usenet, as you must have
observed given that you have complained about it).
[color=blue][color=green]
>> That happens a lot, people who don't know any better lumber
>> themselves with problems by choosing inappropriate scripts
>> because those scripts are easy to find.[/color]
>
> Would it not make sense for you to then offer "better" solutions
> so that they can become popular and used everywhere?[/color]
That wouldn't help much as giving someone who doesn't know what criteria
to apply to the choice something else to choose from only fractionally
increases the chances of an appropriate outcome (assuming it is a
"better" choice). While making them aware of the criteria they should be
applying to that choice significantly increases their chances of making
the right one.
[color=blue]
> I'm not sure you should be condemning users who offer solutions[/color]
"Users who offer solutions"? You mean developers?
[color=blue]
> (and opening themselves up to criticism) when you aren't
> prepared to offer any better replacements. Telling the
> world that they are doing something wrong doesn't carry much
> weight when you don't supply something better.[/color]
When public script collection copy-n-paste is so bad, and bloated
generalised libraries little better, being supplied "something better"
is a matter of employing someone who knows what they are doing to work
on a specific problem. I cannot work on everyone's specific problems,
but I can try to increase the chances that whoever does knows what they
are doing.
[color=blue][color=green]
>> I have told you before, you start off with the OPTIONs defined in
>> the HTML and you test the dynamism of the browser by trying to
>> remove them.[/color]
>
> a) This will not always work.[/color]
Whether it will always work isn't practical to judge, but the mere fact
that the OPTIONs start off in the SELECT elements on the page massively
increases the chances that they will be available to the user in the
event of script failure or lack of browser support over any
implementation that defines the data for the OPTIONs in a javascript
data structure.
[color=blue]
> I would _love_ for you to demonstrate
> this in a cross-browser way that degrades nicely and
> doesn't break in any browsers.[/color]
You found a browser on which the version of mine that you have seen
didn't display its degraded interface when it failed act dynamically?
[color=blue]
> b) The concept of "draw plain html and then go back and make it into
> fancy dhtml" is good in theory, but not always in reality. I've had a
> number of users complain that the screen is drawn, then "snaps" into
> place with a better interface. "Why does the screen jump like that?
> Can you fix it?". Things like changing a <ul> into a dhtml tree is
> different, because the same structure is there. The page contents
> don't change drastically.[/color]
A browser that tries to render progressively can do that with pure
HTML/CSS (particularly when float:right|lef t are used). It is a long way
form being unaddressable.
<snip>[color=blue][color=green][color=darkred]
>>> Buggy browsers should not be supported.[/color][/color][/color]
[color=blue][color=green]
>> Is there (or has there ever been) a single web browser that does not
>> have a bug?[/color]
>
> No, of course not.[/color]
So no browser should be supported? (that will cut down the workload :)
[color=blue]
> But if you're coding for dynamic select
> lists, and you know that Opera 5.02 can create Option objects
> but not add them to select lists, then that's a very specific bug.
> Users of that browser should see things break, because that's a
> big problem that cannot be reasonably tested for.
> In those situations, I think it's better to
> inform the user that their browser sucks then to change the
> whole way that a script functions to support the broken browser.[/color]
From the point of view of a script a browser that does not support a
particular feature (be it through a bug or otherwise) is not any
different from a browser that does not support scripting at all. If
scripts are designed to degrade cleanly then they can cope with any sort
of failure by doing what they would do on a javascript
incapable/disabled browser.
It is not a matter of supporting buggy browsers as such; the script
cannot do what it was designed to actively do, but it can cleanly
degrade.
Are you actually saying that Opera 5.02 will allow OPTIONs to be removed
from a SELECT element and new Options to be created but it will not
allow them to be added to a SELECT element? That would be a very
specific bug, but completely amenable to feature detection.
Richard.
Matt Kruse wrote:[color=blue]
> Richard Cornford wrote:[color=green]
>> Two years ago I was
>> writing scripts much like you write now[/color]
>
> (first of all, much of the content of my site is not what I'm writing
> "now", but has been there for a while... the latest addition was the
> DHTML tree, which surely follows your design ideals)[/color]
I had assumed that the in-window pop-up code that you recently posted
the URL of was contemporary, as your comments and its appalling
behaviour on Opera 7 gave it the air of a work in progress. I did think
that not taking the opportunity to define the contents of the pop-ups
(at least the non-IFRAME ones) in the HTML on the page was retrograde
after your DHTML tree, but as you have repeatedly express a belief that
needlessly introducing javascript dependencies has no significance that
didn't strike me as out of character.
<snip>[color=blue]
> Considering that some of my code has been used by smany very major
> web sites around the world, and my libraries have been useful to
> literally thousands of web sites and saved the butts of many
> behind-schedule web developers, I think you're being over-dramatic.[/color]
As you have decided to raise this weight of numbers/deployed on real web
sites thing again (when I thought that the reason you did not pursue the
argument last time was that you had spotted how hollow it was) it is
probably worth examining its merits.
The implications of the argument are:-
1. The act of deploying a script on a web site (and/or the
fact that it has been chosen by someone for deployment),
in itself, imbues that script with some additional "worth"
(value, measure of standard/quality or whatever).
2. That additional "worth" is proportional to the number of
instances of the deployment of that script (possibly
weighted by the size, importance, popularity, profitability,
or whatever, or the web sites on which it is used).
It doesn't take much examining of web sites, or knowledge of web site
development, to realise that there is one clear contender for the most
widely used scripts; from the smallest web sites to the largest, by at
least an order of magnitude, the most popular deployed scripts worldwide
are the javascript functions output by Macromedia Dreamweaver.
Dreamweaver functions are so popular that you will often see the same
one defined two or three times on the same page.
So by this measure of quality MM_findObj, MM_swapImage,
MM_swapImgResto re and their friends, are the pinnacle of browser
scripting.
However, the opinion of the Dreamweaver functions most widely expressed
on this group is that they are among the worst scripts ever written and
would be best used to illustrate how not the write javascript. Indeed I
have only ever seen one comment in favour of the Dreamweaver functions
and that stressed nothing but how general they are. A characteristic
that directly results in them being inefficient, which invariably
features in the list of arguments against them.
When a measure of "worth" ranks scripts that informed opinion denigrates
so heavily above all others that criteria cannot be a measurement of
script quality.
<snip>[color=blue]
> So quit the condescending crap. If you were offering up a bunch of
> solutions for thousands of developers around the world to use and
> benefit from, and it was always up-to-date and representative of the
> best coding ideals, then you might be able to criticize.[/color]
By which you are saying that my opinion has no value unless I adopt your
approach to javascript authoring and start doing what you have chosen to
do. But my opinion is that your approach is misguided, so I could not be
expected to adopt it.
To only accept criticism about your approach from people who follow your
approach is one way of disregarding criticism, but it lacks any
reasonable foundation.
[color=blue]
> Offering theory - as you usually do - is much _much_
> _MUCH_ easier than maintaining a web site of examples,
> code, support, and documentation.[/color]
What you see as theory I regard as explanation. I don't see the
distribution of even the very best generalised javascript libraries as
the solution to the lamentable current state of Internet browser
scripting. I perceive promoting an understanding of browser scripting as
a practice, its issues and javascript as a language as much more likely
to have a positive impact in that area. Understanding is best promoted
through explanation.
If you see an explanation of the possibilities as theory then that is a
matter of perception. It doesn't matter that you do; theories can be
refuted if they are wrong, so feel free to refute if you can. Though
bare in mind that if I really am posting speculative nonsense with no
hope of implementation then the fact that I am posting it on Usenet
would normally mean that someone would nave noticed and publicly
criticised me for it (that is what happens on Usenet, as you must have
observed given that you have complained about it).
[color=blue][color=green]
>> That happens a lot, people who don't know any better lumber
>> themselves with problems by choosing inappropriate scripts
>> because those scripts are easy to find.[/color]
>
> Would it not make sense for you to then offer "better" solutions
> so that they can become popular and used everywhere?[/color]
That wouldn't help much as giving someone who doesn't know what criteria
to apply to the choice something else to choose from only fractionally
increases the chances of an appropriate outcome (assuming it is a
"better" choice). While making them aware of the criteria they should be
applying to that choice significantly increases their chances of making
the right one.
[color=blue]
> I'm not sure you should be condemning users who offer solutions[/color]
"Users who offer solutions"? You mean developers?
[color=blue]
> (and opening themselves up to criticism) when you aren't
> prepared to offer any better replacements. Telling the
> world that they are doing something wrong doesn't carry much
> weight when you don't supply something better.[/color]
When public script collection copy-n-paste is so bad, and bloated
generalised libraries little better, being supplied "something better"
is a matter of employing someone who knows what they are doing to work
on a specific problem. I cannot work on everyone's specific problems,
but I can try to increase the chances that whoever does knows what they
are doing.
[color=blue][color=green]
>> I have told you before, you start off with the OPTIONs defined in
>> the HTML and you test the dynamism of the browser by trying to
>> remove them.[/color]
>
> a) This will not always work.[/color]
Whether it will always work isn't practical to judge, but the mere fact
that the OPTIONs start off in the SELECT elements on the page massively
increases the chances that they will be available to the user in the
event of script failure or lack of browser support over any
implementation that defines the data for the OPTIONs in a javascript
data structure.
[color=blue]
> I would _love_ for you to demonstrate
> this in a cross-browser way that degrades nicely and
> doesn't break in any browsers.[/color]
You found a browser on which the version of mine that you have seen
didn't display its degraded interface when it failed act dynamically?
[color=blue]
> b) The concept of "draw plain html and then go back and make it into
> fancy dhtml" is good in theory, but not always in reality. I've had a
> number of users complain that the screen is drawn, then "snaps" into
> place with a better interface. "Why does the screen jump like that?
> Can you fix it?". Things like changing a <ul> into a dhtml tree is
> different, because the same structure is there. The page contents
> don't change drastically.[/color]
A browser that tries to render progressively can do that with pure
HTML/CSS (particularly when float:right|lef t are used). It is a long way
form being unaddressable.
<snip>[color=blue][color=green][color=darkred]
>>> Buggy browsers should not be supported.[/color][/color][/color]
[color=blue][color=green]
>> Is there (or has there ever been) a single web browser that does not
>> have a bug?[/color]
>
> No, of course not.[/color]
So no browser should be supported? (that will cut down the workload :)
[color=blue]
> But if you're coding for dynamic select
> lists, and you know that Opera 5.02 can create Option objects
> but not add them to select lists, then that's a very specific bug.
> Users of that browser should see things break, because that's a
> big problem that cannot be reasonably tested for.
> In those situations, I think it's better to
> inform the user that their browser sucks then to change the
> whole way that a script functions to support the broken browser.[/color]
From the point of view of a script a browser that does not support a
particular feature (be it through a bug or otherwise) is not any
different from a browser that does not support scripting at all. If
scripts are designed to degrade cleanly then they can cope with any sort
of failure by doing what they would do on a javascript
incapable/disabled browser.
It is not a matter of supporting buggy browsers as such; the script
cannot do what it was designed to actively do, but it can cleanly
degrade.
Are you actually saying that Opera 5.02 will allow OPTIONs to be removed
from a SELECT element and new Options to be created but it will not
allow them to be added to a SELECT element? That would be a very
specific bug, but completely amenable to feature detection.
Richard.
Comment