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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,865c3d125a8dbc3b X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed-0.progon.net!progon.net!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Howto read line from a stream Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <83317a97-dae5-4c84-a1ac-88a87833cf3f@q14g2000vbn.googlegroups.com> <1a90e055-44a3-4d00-b4cd-64798c731a55@e24g2000vbe.googlegroups.com> <709e8a12-f967-43db-b76b-4852cf1db08b@v4g2000vba.googlegroups.com> <196d124vj6gin.16zf5y40t9tr$.dlg@40tude.net> <4a26d249$0$31865$9b4e6d93@newsspool3.arcor-online.net> <4a26f4a3$0$32674$9b4e6d93@newsspool2.arcor-online.net> Date: Thu, 4 Jun 2009 10:19:30 +0200 Message-ID: <1x2tgzxiay4t3$.rvhjms1ggu3h.dlg@40tude.net> NNTP-Posting-Date: 04 Jun 2009 10:19:30 CEST NNTP-Posting-Host: 4e003301.newsspool3.arcor-online.net X-Trace: DXC=2U\Dd0oki5\@>[RYkFXOIPMcF=Q^Z^V3X4Fo<]lROoRQ^YC2XCjHcbY@\:2[B7LWf]DNcfSJ;bb[UFCTGGVUmh?TLK[5LiR>kgREh:eP1i_VV] X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:6211 Date: 2009-06-04T10:19:30+02:00 List-Id: On Thu, 04 Jun 2009 00:09:40 +0200, Georg Bauhaus wrote: > Dmitry A. Kazakov wrote: > >> Why should I convert anything? > > To get data from outside input, reshaped as needed. > (STEP 3) I don't see how getting data is related to conversion of. (Unless you would claim that XML does some physical measurements...) >> Who does write it? > > Admins, operators, ... They use their preferred, but customized > to your grammar, XML editor that (a) lets them write consistent > configurations and no others and (b) uses XML behind the > scenes only. (Much better than information nicely > scattered in some Excel sheet. Better than some > proprietary system dependent GUI for config making > as these seem to have a limited life time built in.) > (STEP 1) Do you plan an admin position for your ball-point pen? You must be a very wealthy man... The point is, either the configuration is trivial and you don't need any, or else it is non-trivial and then a representation of it as a tree does not work. XML is rooted in dark ages of computing, from the times when people didn't really understand that there is no data. Because data without behavior is noise. You cannot handle complexity merely by providing tree, or for that matter relational views (another end of the "axis of evil" is RDBs). It does not add any value. >> Who does read it? > > The middleware. Your middleware program will process > the XML data produced by outsiders during STEP 1 above. > Wouldn't this processing step resemble an integration > build with regard to the state of compilation > units (XML documents) where a compiler (validating XML parser) > has seen the units? > (STEP 2) My middleware binds publishers and subscribers without XML. > STEP 4: > You have valid data ready for consumption as is... > > Otherwise, there is a problem with input sent to you, > and caused by something outside your responsibility. If input is connected, it cannot be outside my responsibility. Remember the discussion about preconditions and contracts? In a running program there is no such case as "outside someone's responsibility", otherwise it is a bug. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de