This is very tangential, but all the talk about a generic event made
me think of a paper a colleague of mine linked me to about potential
design patterns for UI listeners in Scala:
http://lamp.epfl.ch/%7Eimaier/pub/DeprecatingObserversTR2010.pdf
Again, this is very tangential to GWT itself, but I enjoyed the read.
One concrete thing I did like from the paper is that if an observer
doesn't care about the actual payload of an event, just that it was
triggered, the observer can be hooked up to any and every event,
regardless of the event's type. Multiple times in GWT I've wanted to
run the same logic on blur, on click, on whatever, but cannot have
just a single new HeySomethingGenericHappened() { public void handle()
{ ... } ) that can be hooked up to any event.
- Stephen
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment