Dossy wrote:

On 2002.10.23, Gabriel Ricard  wrote:

>I'm still pretty new to AOLServer and Tcl and just found out about [incr
>Tcl] (itcl), tclx, XoTcl, etc. I looked through the site and mailing
>list archives to see if I could find any mention of these and didn't
>find anything really relevant (there was a similar question asked in
>2000, but didn't seem to get answered).
>
>So, is it possible to use different versions of Tcl (like [incr Tcl])
>with AOLServer?


You may also want to look at TclLib (http://tcllib.sf.net/) as there's
something called "stooop" in there which looks like some
wolf-in-sheeps-clothing type OO for Tcl.

Perhaps the first and most important question to ask is: why do you need
OO for a web application?  Really.

-- Dossy

Well, my opinion is that it is a cleaner way to program. For example,
let's say I have a user object, I know what data it contains and I know
what actions I can make it perform. Programmatically, I have a
definitive, abstract interface to the data, and I know that, should the
underlying model change, I can keep the same interface without having to
modify the rest of my code. Furthermore I can easily extend that object
with new methods should the need arise. Maintaining the code becomes
easier, at least for me.

I could probably do the same thing with procedures and good data
structures, a but in the end I'll have to write more code and have an
API that is more rigid and harder to change if necessary.

But in the end this is just my opinion and the way I feel comfortable
writing code. I know I'm not a master hacker, but I also know that using
OOP methods makes it easier for me to write code.

I know I can get by without it by using a solid API and data modelling,
and I'll probably wind up basing anything I do with AOLServer on OpenACS
anyways.

Honestly, I'm just looking at what my options are.


--
Gabriel Ricard
[EMAIL PROTECTED]

Reply via email to