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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,36a29c2860aff686 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder.news-service.com!news.netcologne.de!newsfeed-fusi2.netcologne.de!newsfeed.straub-nv.de!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Properties Date: Thu, 2 Dec 2010 22:43:19 -0600 Organization: Jacob Sparre Andersen Message-ID: References: <3b84c8e7-1a51-4a7c-9646-119f1fc51478@s4g2000yql.googlegroups.com> <4pnv7nl4cdui$.1n28i7lqk4mek$.dlg@40tude.net> <1k7367gtebsgm$.18auo6u3nfg34.dlg@40tude.net> <1u5dftkqqi68c.10079qnqyyfwb$.dlg@40tude.net> <15tv4yga36dpi$.1hc09dlbgcmqe.dlg@40tude.net> <18768dde-5817-40b9-aaa1-03c620ad7187@i32g2000pri.googlegroups.com> <1sp30ekj4pmer$.1753nbz1zyzid$.dlg@40tude.net> <2a3219cb-5793-4e5b-97aa-036da124ccba@y31g2000vbt.googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1291351400 16587 69.95.181.76 (3 Dec 2010 04:43:20 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Fri, 3 Dec 2010 04:43:20 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 Xref: g2news2.google.com comp.lang.ada:16736 Date: 2010-12-02T22:43:19-06:00 List-Id: "Maciej Sobczak" wrote in message news:2a3219cb-5793-4e5b-97aa-036da124ccba@y31g2000vbt.googlegroups.com... ... >Still, good design principles call for decoupling of >application logic and display (maybe with some intermediate "data >model" module?) and this decoupling blurs that distinction >significantly. When it comes to GUI programming, this supposedly "good design principle" often doesn't make any sense. For example, consider the series of SLED (Simple Little EDitor) examples in Claw. These show how a Notepad-like editor could be constructed using Claw. In this case, the "application logic" is editing of text (that is, handling insertions, deletions, cut, paste, etc.) If you strictly decouple that from the GUI, you then cannot use the prexisting controls that automatically provide that editing functionality. Several of the SLED versions show how that can be done, but the versions using the Rich_Edit control are a lot shorter and also a lot more powerful. You will have that problem with any GUI program that manages text. And there are lots of other similar sorts of examples out there as well. The problem, of course is that there is no such thing as a clear boundary between "application logic" and "display". The application logic has a strong effect on what can be displayed and how; similarly, what the user does with the GUI has a strong effect on what application logic is invoked. They can't be completely independent. Randy.