[Zope] a metric for killing DTML.

Casey Duncan c.duncan@nlada.org
Fri, 2 Nov 2001 09:06:06 -0500


On Thursday 01 November 2001 02:13 am, Anthony Baxter allegedly wrote:
> Like any site that's been around for a while, we've got a lot of
> DTML that shouldn't be DTML. We're gradually killing it, but
> we're looking at detecting stuff that _shouldn't_ be in DTML.
> One metric that's come up is "any DTML method that has 3 or more
> calls to REQUEST.set() is probably up to no good."
>
> Have other people found other useful rules of thumb about when
> to avoid DTML?
>
> Anthony

Just for something nice to think about...

Wouldn't it be cool if somebody wrote a "Zope best practices" guide that 
encapsulates what language is best to use for what... And when you know that 
you've hung too far out on a limb that's shakey...

Zope gives you so many damned choices...

Anyway, one problem is us oldbies who only had DTML or external Python as 
choices (and we liked it!). I have a tendancy to overuse DTML as a logic 
language and also Python to generate HTML code... I'm in remedial therapy 
now, so I hope to break some of those old habits... 8^)

/---------------------------------------------------\
  Casey Duncan, Sr. Web Developer
  National Legal Aid and Defender Association
  c.duncan@nlada.org
\---------------------------------------------------/