comp.lang.ada
 help / color / mirror / Atom feed
From: Adam Beneschan <adam@irvine.com>
Subject: Re: Real Time IO routines answering Simon Wright part 2
Date: Wed, 31 Oct 2007 18:00:22 -0700
Date: 2007-10-31T18:00:22-07:00	[thread overview]
Message-ID: <1193878822.129137.60540@e34g2000pro.googlegroups.com> (raw)
In-Reply-To: <Og5Wi.39767$kj1.2556@bgtnsc04-news.ops.worldnet.att.net>

I don't know why I'm masochistic enough to keep up this silly
argument, but...

On Oct 31, 1:08 pm, a...@anon.org (anon) wrote:

> And even though Ada has no real GUI in the specification it does have
> some. Rather the data is printed to the monitor or to a printer, the user
> (or teacher in the case of students) wants to be able to read the results
> without eye stain and in a timely fashion, that is, only the valid
> significant data. Which means that a programmer has to formatted
> their outputted data in a fashion that is informative but not too much
> that it causes confusion or stain in the user.
>
> And any 19 year programming vet. should knows this!!!

As a 30-plus-year programming veteran (19 years with Ada), I also know
that there are uses of 'Image that do not involve generating output
that a person will have to read for 8 hours a day; and, in fact, there
are uses of 'Image that don't involve generating output at all.  Say
you have an Integer variable File_ID (OK, define your own integer type
if you think only newbies would use the predefined Integer types), and
you want to use that as part of a file name that you're going to
create.  (You already know File_ID is nonnegative.)  What on earth
would be wrong with something like:

  Ada.Text_IO.Create (New_File, Ada.Text_IO.Out_File,
     Name => "nfz_" & Ada.Strings.Fixed.Trim (Integer'Image (File_ID),
Both)
                    & ".txt");

And what would be the point of a coding standard that forces you to
use, say, an instance of Integer_IO to build the file name rather than
using 'Image?

Yet your argument seems to be that, because there are inappropriate
uses of 'Image where you should be generating nicely formatted output
(something I've already acknowledged), that therefore the *only*
appropriate use of 'Image is for debugging.  Sorry, that's just silly.

                      -- Adam





  parent reply	other threads:[~2007-11-01  1:00 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-26 14:58 Real Time IO routines andrew
2007-10-26 16:43 ` Anh Vo
2007-10-26 16:53   ` andrew
2007-10-26 17:04     ` Anh Vo
2007-10-26 17:21       ` andrew
2007-10-26 18:31         ` Anh Vo
2007-10-26 18:36         ` Ludovic Brenta
2007-10-26 20:00           ` andrew
2007-10-26 20:29             ` Ludovic Brenta
2007-10-26 20:46               ` Dmitry A. Kazakov
2007-10-26 20:33             ` Dmitry A. Kazakov
2007-10-26 21:14               ` andrew
2007-10-26 21:54                 ` Anh Vo
2007-10-26 22:34                 ` Adam Beneschan
2007-10-27  1:58                 ` tmoran
2007-10-27 12:40                 ` John McCormick
2007-10-27 20:12                   ` andrew
2007-10-26 17:12 ` Ed Falis
2007-10-27  8:56 ` anon
2007-10-27 10:18   ` Dmitry A. Kazakov
2007-10-27 20:15     ` anon
2007-10-27 20:49       ` Dmitry A. Kazakov
2007-10-27 21:51       ` Simon Wright
2007-10-28 11:35         ` Ludovic Brenta
2007-10-30 14:37           ` Simon Clubley
2007-10-30 13:47             ` Ludovic Brenta
2007-10-30 14:46             ` Jean-Pierre Rosen
2007-10-31 14:38               ` Ada coding standards, was: " Simon Clubley
2007-10-31 18:02                 ` anon
2007-10-31 19:23                   ` Georg Bauhaus
2007-10-31 20:40                   ` John W. Kennedy
2007-11-01 11:27                   ` Stephen Leake
2007-11-01 20:38                     ` anon
2007-10-29 19:28         ` Real Time IO routines -- answering Simon Wright part 1 anon
2007-10-29 21:24           ` Georg Bauhaus
2007-10-29 21:31             ` Georg Bauhaus
2007-10-29 22:01             ` Dmitry A. Kazakov
2007-10-29 22:38           ` Keith Thompson
2007-10-30  0:58             ` tmoran
2007-10-30 16:35         ` Real Time IO routines answering Simon Wright part 2 anon
2007-10-30 21:50           ` Simon Wright
2007-10-31 15:35           ` Adam Beneschan
2007-10-31 20:08             ` anon
2007-10-31 21:08               ` Georg Bauhaus
2007-10-31 21:42               ` Markus E L
2007-11-01  1:00               ` Adam Beneschan [this message]
2007-10-28  1:15       ` Real Time IO routines Jeffrey Creem
2007-10-29 16:18       ` Adam Beneschan
2007-10-29 16:40         ` Robert A Duff
2007-10-29 17:26           ` Adam Beneschan
2007-10-29 22:34             ` Keith Thompson
2007-10-29 17:25         ` Jean-Pierre Rosen
2007-11-15  4:27         ` Randy Brukardt
2007-11-15  4:27         ` Randy Brukardt
2007-10-29 18:53       ` andrew
2007-10-29 22:35         ` Keith Thompson
replies disabled

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