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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4b27f494a96e0530 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!attbi_s51.POSTED!53ab2750!not-for-mail From: "Steve" Newsgroups: comp.lang.ada References: <2004100600261150073%david@bottoncom> <2smd6iF1mo0mcU1@uni-berlin.de> Subject: Re: A community Windows binding X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Message-ID: <9JI9d.213784$D%.188112@attbi_s51> NNTP-Posting-Host: 24.21.42.251 X-Complaints-To: abuse@comcast.net X-Trace: attbi_s51 1097291717 24.21.42.251 (Sat, 09 Oct 2004 03:15:17 GMT) NNTP-Posting-Date: Sat, 09 Oct 2004 03:15:17 GMT Organization: Comcast Online Date: Sat, 09 Oct 2004 03:15:18 GMT Xref: g2news1.google.com comp.lang.ada:4947 Date: 2004-10-09T03:15:18+00:00 List-Id: "Jeffrey Carter" wrote in message news:KgH9d.9844$M05.267@newsread3.news.pas.earthlink.net... > Nick Roberts wrote: > > > The window manager calls -- via callbacks, or (better) dispatching -- > > Callbacks and dispatching are essentially the same thing in a windowing > system. You have to write little pieces of code that can be invoked in > any order at any time outside your control. You have to use global > variables extensively for these little pieces of code to communicate. > The code is difficult to read because you have to understand all these > little pieces to understand any part of the software. > Don't confuse the architecture into which software must be developed with poor design. It is entirely possible to develop software that is easy to follow in a windowing system... without resulting to using global variables extensively for these little pieces of code to communicate. For example: in windows a reference to an object may be associated with a window. The message handling routine has access to the window, and likewise the reference to the object. Nothing is global. This may not be the most obvious implementation, but is certainly more clean. Steve (The Duck) > With an event queue approach, one writes standard imperative software > using your standard imperative language (Ada's about the only one). The > code is well structured and easy to read and understand. > > -- > Jeff Carter > "I'm a lumberjack and I'm OK." > Monty Python's Flying Circus > 54 >