[Tutor] class design

Kent Johnson kent37 at tds.net
Sat Jun 6 17:55:49 CEST 2009


On Sat, Jun 6, 2009 at 10:43 AM, Norman Khine<norman at khine.net> wrote:
> http://docs.hforge.org/itools/web.html although this is for the newer
> version, in my case i am maintaining an older version.

>From that page it seems that itools does as I suggest. They claim to
follow the Model-View-Controller pattern which separates the model and
view. The View classes are responsible for display of data but not for
the contents. It's not clear from the examples where the model fits in
but it is distinct from the view.

Kent

> On Sat, Jun 6, 2009 at 3:24 PM, Kent Johnson<kent37 at tds.net> wrote:
>> On Sat, Jun 6, 2009 at 8:26 AM, Norman Khine<norman at khine.net> wrote:
>>
>>>> You probably don't want the view code in the same class with the data.
>>>> It's generally a good idea to separate the model - the representation
>>>> of data - from the view - the display of the data.
>>>
>>> In iTools, each class has a view, edit, state etc... functions
>>> depending on the class.
>>
>> Can you point to an example in the itools docs?


More information about the Tutor mailing list