[Cuis-dev] the demo challenge in Smalltalk

Hilaire Fernandes hfern at free.fr
Mon Mar 2 10:19:33 PST 2026


I meant, TextModel, not TextEditor.

You have three objects:

SystemWindow: to present the view

TextEditor: to represent the the functionality of a text editor

TextModel: to hold the text

Then  there is also TextModelMorph...

I find the whole Text model in Cuis very difficult to understand. I 
suspect it is the result of a legacy code from the '70 with multiple 
partial refactorings ending with code not well designed, but it works. 
It is very far from any MVC/MVP pattern, the responsibilities between 
the involved objects are interlaced making hard to understand the logic.

I will never pick this as a topic for a learner. You have only scratched 
the surface. Take another topic, no need to constantly hit the head on 
the same wall.

Hilaire

Le 01/03/2026 à 22:19, Hilaire Fernandes a écrit :
>
> What's wrong executing 'TextEditor open' in a Workspace ?
>
> Then inspect the window, its model is the *TextEditor*.
>
> But I think you are taking the wrong learning path with your grandchild.
>
-- 
GNU Dr. Geo
http://gnu.org/s/dr-geo/
http://gnu-drgeo.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260302/d907ceda/attachment.htm>


More information about the Cuis-dev mailing list