[Y-devel] Random thoughts
Mark Thomas mark at www.y-windows.org
Fri Feb 20 23:56:10 GMT 2004
Hi,
On Fri, 20 Feb 2004, Jason Miller wrote:
> I've been considering one of the issues related to server side widgets,
> and one idea came to mind. Someone commented in another email that
> loading client code to the server was undesirable, and I absolutely
> agree.
Yes, I'd like to keep Y as language-agnostic as possible, and that means
not requiring people to use a server-scripting-language.
There's a lot of talk about "custom widgets", but when you think about it
carefully, there is really only ever one good reason to make a "custom
widget" and that is when you are displaying client-specific data on the
screen, for example a Gantt chart in a scheduling application.
In these situations, there is usally a *lot* of client-side data that
needs to be displayed, which we don't want to be throwing over the network
connection every time it changes, so it seems that this is the one case
where having the widget server-side would be a bad thing. Which is lucky
for us, since it's easier to let the clients subclass "Canvas" on the
client side and do the drawing themselves.
Of course, Canvas will provide methods for drawing theme-parts (like
buttons and so forth), so client-side widgets can fit into the look and
feel. The only issue here is latency (which only comes into play on
high-latency connections), but I think we're going to have to live with
that.
Regards,
Mark.
--
|| Mark Thomas
|| efaref.net
||
|| Cats know how we feel. They don't give a damn, but they know.
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved