On Wed, 11 Jul 2001, Berin Loritsch wrote:
> > If I understand this correctly, the Avalon Configuration object is kind
> > of a simplified XML structure without deeper nesting, right?
>
> It can fully represent an XML structure, but it ignores namespaces and you
> cannot traverse UP the hierarchy--only down. This is by design, so that
> Components that create Components can pass a reference to a child Configuration
> and the child Component cannot get information about the parent Component.
> It's the Inversion of Control principle.
Ok, off-topic, rant warning:
I may sound a bit naive, but I think design patterns and OOP are largely
buzzwords. In the real world nobody can understand this code, but its
creator. There is too much information in the structure and too little in
the actual code, not to speak of the documentation, which is usually
skipped. Some people go to great lengths to define interfaces and abstract
classes to make re-use as easy as possible and then they rarely ever
re-use any code. Hey, all the interfaces and abstract classes in Cocoon1
are for the trashcan now - the time thinking about them should have been
spent writing documentation.
Sorry for the rant, but I currently have to fix a behemoth of abstraction,
where the actual code has become so small, that it's hard to find and hard
to test - with the result being that it hasn't been tested and is full of
obscure bugs. And then the whole thing runs under Avalon, which is
extremely hard to debug itself :)
Still, maybe I should think less about Cocoon2 and more about Avalon.
Yeah, sometimes I have crazy ideas :)
Please don't take my criticism the wrong way, I'm here because the Apache
group consistently turns out fantastic code. I just have my opinions and
if you read this list, you'll notice that I'm usually quite alone with
them :)
Ulrich
--
Ulrich Mayring
DENIC eG, Softwareentwicklung
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>