Niels van Kampenhout wrote:
Reinhard Poetz wrote:

<snip/>

Of course all the software engineering principles apply as much to
Cocoon applications as to any other, but most people find it difficult
to abstract away from the "traditional" frameworks for which they
learned their patterns, and apply their knowledge to Cocoon. And that's
no surprise, because Cocoon is so big, you can do so much with it, and
you can do it in so many ways. There are some best practices that are
known in the community, about which we speak at the GetTogether, but
that's pretty much it. You really have to learn everything about Cocoon
from the bottom up to find out how a particular type of application is
best set up in Cocoon. Getting up and running with your first Cocoon
project, and this is why this discussion started, is therefor really
difficult. Even the best documentation about how sitemaps and pipelines work will not solve this!

I have been working on http://cocoon.zones.apache.org/daisy/cdocs/g2/g1/1370.html. I hope that it helps.

What really works in my experience is turning the learning curve upside
down and providing people with patterns and components that simply work, and work transparently, so that at first they don't have to think about it. For example, Ard put a lot of work in making a website skeleton generator, which basically does that whole first step of deciding how to set up the application for you. The generated skeleton is preconfigured with subsitemaps, caching and everything, and it contains many little components that do things like paging of lists, mounting subsitemaps based on our specific navigation concept, etc. This skeleton generator meant a giant leap in productivity for our implementation partners. Getting up and running is no longer a problem, and through the pre set up skeleton the developers seem to get better at working with the Cocoon concepts much faster. At some point they might even discover that things could be done in a better way than in the skeleton!

could be a great enhancement for the Cocoon Maven 2 plugin

Of course we have our very specific use case of a web site presenting content from a certain CMS/Repository and our patterns may not work for other situations, but what I am trying to say is that in my opinion the missing link between Cocoon as a brilliant framework and Cocoon as a widely accepted framework is the lack of a mapping between the bare concepts and actual real-life application development.

Filling this gap is of course more difficult for Cocoon than for web sites based on a specific CMS, but a first step could be describing how some common use cases (there's a user list out there == use cases!) could be implemented with Cocoon, or even better, providing reference implementations that go much further than the current samples. In my dream I even see a wizard through which one can generate a preconfigured application skeleton for a number of different cases. These things exist for other frameworks you know!

(Blocks and Maven 2 archetypes might be a small first step towards this dream, I don't know, I haven't been able to check it out yet.)

The archetypes yes but blocks solve a different but somehow related problem.

Anyway, these are just my 2 cents (needed a lot of words for those 2 cents though), I hope it is a useful contribution to this discussion. :-)

Thanks Niels. What I learn from your response is that it would be great to have an equivalent to the RoR scaffolding command. What skeleton apps would you like to generate?


--
Reinhard Pötz Independent Consultant, Trainer & (IT)-Coach
{Software Engineering, Open Source, Web Applications, Apache Cocoon}

                                       web(log): http://www.poetz.cc
--------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to