comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Extending a third party tagged type while adding finalization
Date: Mon, 4 Dec 2017 16:39:42 +0100
Date: 2017-12-04T16:39:42+01:00	[thread overview]
Message-ID: <p03q7t$ucm$1@gioia.aioe.org> (raw)
In-Reply-To: dccea67f-87ce-4085-b9e4-8951059b4057@googlegroups.com

On 04/12/2017 15:59, Robert Eachus wrote:
> On Monday, December 4, 2017 at 2:58:25 AM UTC-5, Dmitry A. Kazakov wrote:
> 
>> You mean MVC using all static object? I don't think that is possible
>> with or without tools.
> 
> No, I mean/meant to have it possible to write the model, view, and
> controller separately, then have a tool combine the three aspects.
Why a tool? What's wrong with connecting/attaching instances?

> So the controller could be used to do multiple changes, then a call
> to run causes an initial call to display.

Usual technique is to freeze view notification when doing bulk updates 
to the model. The easiest way is to detach all views, do updates and 
attach them back. This is how GTK deals with MVC.

> The controller will also make calls to display, as will the model
> from time to time (modeled time in a simulation, or test harness).

MVC is a synchronous model which pushes updates. If you aim at real-time 
systems you would rather use a view that pulls periodically regardless 
of any updates. That is not classical MVC.

> The goal is not only to make it easier for the programmer to think
> about the different aspects while programming them, but to minimize the
> scaffolding that the programmer must write. Done well, the view mode
> would use default values for display objects and it would be possible
> for the programmer/user to move things around, resize them, change fonts
> and colors, and save all this in a config file.

Most frameworks separate all that from whatever model. These things 
handled as properties/styles of the widgets of which the view is 
constructed. Throwing all into one heap won't make things easier, IMO.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


  reply	other threads:[~2017-12-04 15:39 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-22 12:43 Extending a third party tagged type while adding finalization Jere
2017-11-22 16:42 ` AdaMagica
2017-11-26 17:33   ` Jere
2017-11-26 18:15     ` Dmitry A. Kazakov
2017-11-26 19:31       ` Jere
2017-11-27  9:46     ` AdaMagica
2017-11-27 12:56       ` Jere
2017-11-27 15:00         ` AdaMagica
2017-11-27 16:38           ` Jere
2017-11-27 18:37             ` AdaMagica
2017-11-27 19:53               ` Jere
2017-11-28 11:48                 ` AdaMagica
2017-12-03  2:22                   ` Jere
2017-12-03 21:53               ` Robert Eachus
2017-12-04  7:58                 ` Dmitry A. Kazakov
2017-12-04 14:59                   ` Robert Eachus
2017-12-04 15:39                     ` Dmitry A. Kazakov [this message]
2017-11-27 18:10     ` Shark8
2017-11-27 19:56       ` Jere
2017-11-28  1:55       ` Randy Brukardt
2017-12-03  2:47         ` Jere
2017-12-03  9:29           ` Dmitry A. Kazakov
2017-12-03 15:10             ` AdaMagica
2017-12-03 16:39               ` Dmitry A. Kazakov
2017-12-03 19:34             ` AdaMagica
2017-12-03 19:41               ` Dmitry A. Kazakov
2017-12-04 12:38                 ` AdaMagica
2017-12-04 13:19                   ` AdaMagica
2017-12-04 13:55                     ` Dmitry A. Kazakov
2017-12-04 15:44                       ` AdaMagica
2017-12-04 16:19                         ` Dmitry A. Kazakov
2017-12-04 20:54           ` Randy Brukardt
2017-12-04 21:02             ` Dmitry A. Kazakov
2017-12-05 21:09               ` Randy Brukardt
2017-12-05 21:29                 ` Dmitry A. Kazakov
2017-12-07  1:13                   ` Randy Brukardt
2017-12-07  8:36                     ` Dmitry A. Kazakov
2017-12-07 23:22                       ` Randy Brukardt
2017-12-08  9:30                         ` Dmitry A. Kazakov
2017-12-09  0:17                           ` Randy Brukardt
2017-12-11  9:03                             ` Dmitry A. Kazakov
2017-12-11 22:42                               ` Randy Brukardt
2017-12-12 16:11                                 ` AdaMagica
2017-12-12 20:08                               ` G. B.
2017-12-12 20:32                                 ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox