durusmail: quixote-users: Generalizing form/widget API a bit
Generalizing form/widget API a bit
2003-11-25
2003-11-25
2003-11-25
2003-11-25
2003-11-25
2003-11-26
2003-11-26
2003-11-26
2003-11-26
2003-11-26
2003-11-26
2003-11-26
2003-11-26
2003-11-26
2003-11-26
2003-11-26
2003-11-29
2003-11-30
2003-11-26
2003-11-26
2003-11-26
Patch: add html_attrs keyword arg to widget classes
2003-11-30
Patch: add html_attrs keyword arg to widget classes
2003-12-01
Patch: add html_attrs keyword arg to widget classes
2003-12-01
Patch: add html_attrs keyword arg to widget classes
2003-12-01
2003-12-02
2003-12-03
2003-12-02
Patch: add html_attrs keyword arg to widget classes
2003-12-01
Patch: add html_attrs keyword arg to widget classes
2003-12-01
Generalizing form/widget API a bit
Martin Maney
2003-11-26
On Wed, Nov 26, 2003 at 05:05:50PM +0100, Nicola Larosa wrote:
> Hey, look out before you speak up against the wise words of Da Man himself:
;^)

I have tremendous admiration and respect for Guido as a language
designer, but there are a very few things that make me wonder, if
considered in isolation, what evil influence hit him over the head just
then.  :-/

> (Someone's got to read the bloody guidelines. ;^) )

I've read them too, and I agree with them - when there's a need to use
a more or less ugly kluge to avoid conflict.  What I fundamentally
don't like about this specific use is that it seems to have first gone
to some length to create, needlessly, a context where the conflict can
arise.  I suggest, therefore, to apply the hoof and mouth remedy: where
there are no cattle, there's no hoof and mouth...

I may be overlooking some compelling use case for saving a few
keystrokes, but I don't see any benefit in typing "class_='this'"
rather than {'class':'this'} - and that probably would be the most
common form I would use, if/when I used that part of Quixote, so I'd
type that once, bind it to a local name, and use the name everywhere.
I suppose it looks more attractive to those who are using a lot of
size='12px' and color='green' and so forth, but I'm tempted to suggest
they get hold of a copy of Zeldman's "Designing with Web Standards".
Try to overlook the way it's been inflated to twice the size it ought
to have been (probably at the publisher's behest; Zeldman says he
originally intended to write a treatise to be called "The Little Orange
Book of Web Design", and I'm nearly certain I would have preferred to
read that thinner book).  The impatient who are willing to moot the
desirability of following the W3C's reccomendations wherever possible
can pretty much skip the whole first section.

But there I go, digressing again.  :-)

--
Our government ... teaches the whole people by its example.
If the government becomes the lawbreaker, it breeds contempt
for the law; it invites every man to become a law unto himself;
it invites anarchy. -- Justice Louis D. Brandeis


reply