[Y-devel] Will Y enforce uniformity? Or just allow it?
Kris Van Hees aedil-y-devel at alchar.org
Tue Mar 9 19:21:58 GMT 2004
On Tue, Mar 09, 2004 at 04:39:01PM +0100, Maurizio Colucci wrote:
> On Tuesday 09 March 2004 16:25, Matthias Heinz wrote:
> > Am Di, den 09.03.2004 schrieb Maurizio Colucci um 15:35:
> > > I would love Y to force uniformity by forcing you to use its widgets, but
> > > I don't know if it's feasible.... what would prevent you from writing and
> > > running your own toolkit library? What if you don't like the Y toolkit,
> > > and need some strange functionality? (answer: you create a Y widget)
Uniformity is a two-edged weapon. It is great to ensure that things work in a
very consistent way, and it enables people to not worry about the details of
whether something will have the same L&F as everything else. But it causes
innovation to be more difficult. What if someone wants to write an application
that is best served with a very much custom widget? Yes, it can use a canvas,
but then it also needs to do some magic to e.g. accept mouse operations on the
content of that canvas. Or you might be able to fake the complex widget by
creating it as a collecton of various other widgets, combined in just the right
way to get the same effect.
Should application programmers be forced to wait with releasing an app until
the Y maintainer(s) decide(s) whether to accept the new (very application
specific) widget? Wouldn't it be better if there were a way in Y to accomplish
this in a more flexible way?
What about also providing an API for allowing client-side widgets, to be used
in the more rare cases where that is needed? Does it need to be as efficient
as the core widgets in the server? Of course not! You wouldn't want that
anyway, because the goal of course is to avoid people writing entire widget
toolkits on the client side. But some may be needed.
This may also open the opportunity to build in some flexibility for version
differences between clients and servers. I do not know how feasible it will
be, but...
<dream-style>
If the client libraries could have two components for widgets (dynamically
loadable of course, as needed): a client-side implementation, and the code
to interface with the server-side widget. That way, if the client library
is of a newer version than the server, it could switch to using the (less
efficient) client-side implementation of the widget rather than using the
accelerated server-side widget.
</dream-style>
The above concept is rather important I think, in the long run, even if it is
done in a completely different way. One of the advantages of X (yes, I think
there are some) is that the dependency on widget sets is with the client, and
not with the server. That means that I can display pretty much any X app I
tend to use on almost any X server I have access to.
My main point (beyond dreaming about the future) is really that uniformity
should not cause limitations in the creativity of developers, nor should it
hinder innovation. I doubt anyone can claim to be able to implement a widget
set in the next 12 months, that will satisfy the requirements of all GUI
applications that may be developed in the next 24 months, or so.
> And there are real problems too... I may have a personal usability guideline
> where all buttons must be bigger than 30x30. Suppose the scroolbar widget
> supplied by Y has smaller buttons. What can I do? write my own widget? But
> then I rewrite all the widget, and it is as if I were using another toolkit.
>
> (Actually, I do have such a guideline: https://segusoland.sourceforge.net,
> Human Interface Guidelines)
Wouldn't that mainly be a theme issue. As long as there is a highly
customizable theme available, that can be supported by a client application to
'load' your settings into the theme module, you ought to be set.
Kris
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved