[Zope] Enhydra anyone?

Ian Sparks Ian Sparks" <isparks@wmute.u-net.com
Mon, 13 Mar 2000 20:35:30 -0000


Here is my quick intro to Enydra and why I think it is interesting.

Enhydra (http://enhydra.org)
======

Licence : OpenSource.
Technologies : Java Servlets, XML DOM.

Java-based Enhydra has possibly the most interesting take. It uses
JavaServlets to provide content. You give it your HTML file, marked up with
some extra attribute tags :

<HEAD>
</HEAD>
<BODY>
  <P ID=Fred></P>  <!-- a Param tag with ID -->
  <P ID=Jim></P>     <!-- another -->
</BODY>

It then turns this HTML into a Java class with all the tagged elements given
getter/setter methods in the class. It compiles the class.

So now if I want to do something with the HTML fragment above I just create
an instance of MyClass and do things like :

  GetElementJim.SetText('My content for Para1');
  GetElementFred.SetText('My content for Para2');

In essence the Class models a XML DOM tree for the HTML put in so you can
now apply DOM methods to it to manipulate the model.

This neat because :

1. It's in compiled (well, as far as Java compiles) code so is quick.
2. DOMs  kick out "compressed" XML content, all redundant spaces CR/LF pairs
are removed.

Enyhdra also pools DB connections to improve performance.

- Ian Sparks.




----- Original Message -----
From: "Hung Jung Lu" <hungjunglu@hotmail.com>
To: <zope@zope.org>
Sent: Monday, March 13, 2000 8:10 PM
Subject: [Zope] Enhydra anyone?


Hi,

Is there any comparison between Enhydra (Java-based open-source
application server) and Zope (Python-base open-source application
server)?

I guess Zope and Enhydra are colliding head-on. :) Can anyone
give a little bit more background to Enhydra?

Zope site used to have a page about comparisons (like with
PHP), now I cannot find that page.

Having worked with Java (and previously with C++), I must say
that I don't have a positive opinion about Java. I know Enhydra
has this "open source" thingy and even tries its best at painting
"worldwide developer hall of fame" stuff, but it seems kind of
corny. I just don't think you can do open source well enough
with a language like Java which was designed by the corportate
and for the corporate.

It's not that Zope is excellent, it's not. But Python's CP4E
(computer programming for everyone) approach eventually will
make it longer lasting than anything else, (especially after
Python 2 comes out) and I just don't see how Java can
survive in the long run. As for Zope, I guess in the long
run it will need a major re-work, otherwise it will lost
the competitive edge.

Hung Jung

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )