[Seaside] Wafer weblog sample application
Avi Bryant
avi at beta4.com
Fri Aug 8 20:00:37 CEST 2003
Hey Todd,
That's really cool. It's great to have an example that is *identical* to
other code out there (I didn't do an exhaustive test but I couldn't see a
single difference between your code and the prototype in a few minutes of
poking around).
The first thing that struck me about looking at your implementation was
that everything subclasses from WaferMain. I tend to use composition for
that in Seaside - unlike in WebObjects, when a component calls another
component, you don't replace the top level, only the embedded part of the
page. So you can easily have a frame component at with your outer stuff,
and embed a subcomponent that only renders what you have as the "main
column" - if that makes sense.
The other thing that struck me is that your render methods are huge - I
would tend to break those up into way more parts, and especially keep the
action blocks very short. But that's just taste...
Oh, here's something else - you don't need to do, eg,
html bold: [html text: 'foo'].
You can just use
html bold: 'foo'.
Ditto for #tableData: etc.
Cheers,
Avi
On Fri, 8 Aug 2003 tblanchard at mac.com wrote:
> Attached is an implementation of the Wafer Weblog reference application.
> I'm going to speak to a bunch of J-heads that have developed an
> obsession with finding the perfect web application framework. I
> thought I'd show them Seaside and rock their world a little bit.
>
> This version uses the amazingly weak SmartFileDictionary. Not too
> robust. God help us if two users login at once. OTOH, they don't seem
> to care how persistence works. Just page rendering and session
> management.
>
> The model for this thing is at:
> http://www.waferproject.org/weblog-prototype/index.jsp
>
> My version is attached:
More information about the Seaside
mailing list