comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Howto read line from a stream
Date: Thu, 4 Jun 2009 10:19:30 +0200
Date: 2009-06-04T10:19:30+02:00	[thread overview]
Message-ID: <1x2tgzxiay4t3$.rvhjms1ggu3h.dlg@40tude.net> (raw)
In-Reply-To: 4a26f4a3$0$32674$9b4e6d93@newsspool2.arcor-online.net

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



  reply	other threads:[~2009-06-04  8:19 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-31 10:41 Howto read line from a stream Tomek Walkuski
2009-05-31 11:29 ` Tomek Wałkuski
2009-05-31 12:02   ` Dmitry A. Kazakov
2009-05-31 12:56     ` Tomek Wałkuski
2009-05-31 14:30       ` Tomek Wałkuski
2009-05-31 15:13       ` Dmitry A. Kazakov
2009-06-01 23:30         ` Randy Brukardt
2009-06-02  7:30           ` Dmitry A. Kazakov
2009-06-02  9:36             ` Georg Bauhaus
2009-06-02 10:24               ` Dmitry A. Kazakov
2009-06-02 21:15             ` Randy Brukardt
2009-06-01  6:34     ` Pascal Obry
2009-06-01  0:05   ` Jeffrey R. Carter
2009-06-03 15:49     ` Tomek Wałkuski
2009-06-03 18:04       ` Jeffrey R. Carter
2009-06-03 21:41         ` Maciej Sobczak
2009-06-04  8:56           ` Jean-Pierre Rosen
2009-06-04  9:05             ` Ludovic Brenta
2009-06-04 13:05             ` Maciej Sobczak
2009-06-04 14:16               ` Jean-Pierre Rosen
2009-06-04 19:48                 ` Ludovic Brenta
2009-06-04 14:24               ` Dmitry A. Kazakov
2009-06-03 19:07       ` sjw
2009-06-03 19:26         ` Dmitry A. Kazakov
2009-06-03 19:43           ` Georg Bauhaus
2009-06-03 20:11             ` Dmitry A. Kazakov
2009-06-03 22:09               ` Georg Bauhaus
2009-06-04  8:19                 ` Dmitry A. Kazakov [this message]
2009-06-04  9:41                   ` Georg Bauhaus
2009-06-04 10:23                     ` Dmitry A. Kazakov
2009-06-04 12:14                       ` Georg Bauhaus
2009-06-04 14:54                         ` Dmitry A. Kazakov
2009-06-04 16:33                           ` Georg Bauhaus
2009-06-05  9:57                             ` Dmitry A. Kazakov
2009-06-04 14:16         ` andrew
2009-06-01 19:12   ` björn lundin
2009-05-31 11:34 ` Dmitry A. Kazakov
2009-05-31 15:38   ` sjw
2009-05-31 16:07     ` Dmitry A. Kazakov
2009-05-31 20:39       ` Niklas Holsti
2009-05-31 22:00       ` sjw
2009-06-01  8:35         ` Dmitry A. Kazakov
2009-06-01 23:34     ` Randy Brukardt
2009-06-02  2:27 ` anon
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox