From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Extending a third party tagged type while adding finalization Date: Mon, 4 Dec 2017 16:39:42 +0100 Organization: Aioe.org NNTP Server Message-ID: References: <4db43571-7f86-4e73-8849-c41160927703@googlegroups.com> <6496a10f-c97e-4e42-b295-2478ad464b2f@googlegroups.com> <6106dfe6-c614-4fc1-aace-74bf8d7435e3@googlegroups.com> <102d4df8-d392-4100-9a37-c49705397e4e@googlegroups.com> <2240ea85-c247-4097-9877-24ce32a47123@googlegroups.com> <597f151d-a8e6-49f6-82af-c171feb94b32@googlegroups.com> NNTP-Posting-Host: MyFhHs417jM9AgzRpXn7yg.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 X-Notice: Filtered by postfilter v. 0.8.2 Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:49353 Date: 2017-12-04T16:39:42+01:00 List-Id: 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