O$ programming style
I have adopted a similar concept. In essence imitating the MVC design pattern.
I created a controller object for the window and the controller instantiated the window (view) and acted as the event manager for same etc.
At first I of course was always questioning is there an advantage.
Over time the advantages started to appear.
First I would find common tasks that could be set to sub controllers and be available to other views.
Later and most important, Mayada Al-Kishtini took the concept and using the same controller with adjustments was able to use to control an javascript view.
Ken
Ken Dimson
ken@dimson.com <mailto:ken@dimson.com>
That you are here — that life exists, and identity; that the powerful play goes on and you may contribute a verse. — Whitman
What will your verse be?
> On Dec 18, 2017, at 8:46 AM, Mike Rowan <michael.rowan3@gmail.com> wrote:
>
> I have recently written a lot of code using the idea that ‘Omnis Programming’ seems to suggest, namely having almost no operational code in the methods of a window, by shifting them to an object instantiated as an instance variable of type object of the window.
>
> I’n not sure I see any advantage for a desktop library, and wonder what I have missed. In fact it seems to add a whole extra layer of pain.
>
> Meanwhile, seasons greetings to all
>
> Mike
> _____________________________________________________________
> Manage your list subscriptions at lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com