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,41e2008f41502f03 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 27 Sep 2006 13:26:36 -0500 From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Should a GUI be separated from the application? References: X-Newsreader: Tom's custom newsreader Message-ID: Date: Wed, 27 Sep 2006 13:26:36 -0500 NNTP-Posting-Host: 67.164.83.70 X-Trace: sv3-AuUNIBkr/eur/r1Zr8QFQR/yoiphHD6tqiPFVLa1y5n/P9aS/i/38jOTHIWYwCL2S7M/em8B5cq8Bf4!h2wvLG2T422HlTaAKFH4oIQNQtnZ95F8tC+pRfmRDDvqLdENdHCPuWhN2KH07lpcZQuhAF52FmRh!/x5bSDlcuJDjGg== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news2.google.com comp.lang.ada:6781 Date: 2006-09-27T13:26:36-05:00 List-Id: > The users have the option of making the "application code" in the GUI > framework just communicate with the real application, via rendezvous, > sockets or whatever. Agreed. It depends on the complexity and the timing requirements. If the response to a human-caused event can be done in a fraction of a second, the code might be included in the GUI event handler, while responses that take a long time should be separate to avoid blocking other events. If the complexity of communication is low - updating a percent complete display for example - then it's easy to separate app and GUI code and communicate with something simple like a protected object. If the communication is very complex, your user may find even rendezvous difficult and want to put the app code inside the event handler. One size doesn't fit all.