comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <onewingedshark@gmail.com>
Subject: Re: Properties
Date: Mon, 6 Dec 2010 15:22:22 -0800 (PST)
Date: 2010-12-06T15:22:22-08:00	[thread overview]
Message-ID: <923f0664-890d-4ca9-9b34-2da64067b068@21g2000prv.googlegroups.com> (raw)
In-Reply-To: Xns9E46A316BB94AWarrensBlatherings@81.169.183.62


> > I defiantly agree with the Hungarian notation.
>
> <tossed cookies> followed by <dry heaves>
>
> The type declaration carrys the type information. It does NOT
> belong in the name (of the variable).  It creates a  
> maintenance nightmare also -- change the type and all
> instances of the name must be changed.  
>
> BLECH.

Eh, my mistake, I meant to say "I defiantly agree with you on the
Hungarian notation."
> > I agree with you about the WORD, DWORD, pointer thing. It
> > would be better to have actual types with actual
> > parameters/fields...
>
> Yes. Every event and API is usually specific enough for real
> type definitions.
>
> > but then the same could be said about
> > the 'typless' FSes for *nix and windows
>
> That is something different. A "file" is a perfectly generic
> container of information. Do you want to allow your software
> to decide the format? Or would you prefer the OS to do it
> instead?  Something must decide.

Er, I think you misunderstand what I mean by "typed files" very often
"the software" does NOT & should NOT decide the format; if that were
the case then "the software" could say "my HTML file writer doesn't
need ending tags!" or "I don't need to write the header for an .ICO
file!" which misses the whole point of having a specified standard.

IOW, the type of a file, having some definition, SHOULD ensure that
the file has the correct layout... like Access ensures that our
"pointer" *IS* to a variable of the specified type.

> Prior to Unix, everything was a unit record of some sort. It
> still is on the non-UNIX (non-hierarchical) parts of a
> mainframe:
>
> //DATAOUT DD DSN=M0DXYZ.DATA,                      
> //           DISP=(NEW,CATLG,DELETE),                
> //           SPACE=(TRK,(10,10),RLSE),                
> //           DCB=(RECFM=FB,LRECL=23,BUFNO=10,OPTCD=C)
>
> Do you want to go back to specifying all these file
> attributes? RECFM=? LRECL=? BLKSIZE=? bLECH. Not to
> mention it complicates ftp transfers etc. :
>
> LOCSITE LRECL=80 RECFM=FB BLOCKSIZE=320 CYLINDERS \
>   PRIMARY=2 SECONDARY=2
>
> Blexhch.

It actually makes a lot of sense to be able to have some sort of "unit
record" in files, especially if you are dealing with databases and, in
that case, units should be able to be individually locked.

As for specifying all the little attributes of some file, why not
treat it the same way I do in Ada: unless there is some specific
reason to do otherwise [like hardware interfacing] let the compiler
choose the attributes of the type like 'Size, 'Bit_Order?

>
> One of the best things about Unix is that it finally tossed
> aside all of these silly hinderances.  Everything since has
> copied this thinking.

Just because everything copies the thinking neither means that the
thinking is correct or useful. (Though it doesn't mean that it's wrong
or useless either.)



  reply	other threads:[~2010-12-06 23:22 UTC|newest]

Thread overview: 96+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-28  3:21 Properties Shark8
2010-11-28  8:15 ` Properties Dmitry A. Kazakov
2010-11-28 19:43   ` Properties Shark8
2010-11-29  8:34     ` Properties Dmitry A. Kazakov
2010-12-01 18:15       ` Properties Shark8
2010-11-28 12:37 ` Properties Georg Bauhaus
2010-11-28 21:22   ` Properties Shark8
2010-11-29 16:54     ` Properties Georg Bauhaus
2010-12-01 19:52   ` Properties Martin Krischik
2010-12-01 23:24     ` Properties Georg Bauhaus
2010-12-05 16:15       ` (placepo) Properties Martin Krischik
2010-12-06 23:24         ` Shark8
2010-12-01 23:31     ` Properties Georg Bauhaus
2010-11-30  1:49 ` Properties Randy Brukardt
2010-11-30 16:58   ` Properties Charmed Snark
2010-11-30 17:22     ` Properties Dmitry A. Kazakov
2010-11-30 20:27       ` Properties Warren
2010-12-01  8:39         ` Properties Dmitry A. Kazakov
2010-12-01 15:21           ` Properties Warren
2010-12-01 15:59             ` Properties Dmitry A. Kazakov
2010-12-01 16:20               ` Properties Warren
2010-12-01 18:22                 ` Properties Dmitry A. Kazakov
2010-12-01 19:36                   ` Properties Shark8
2010-12-01 21:13                     ` Properties Dmitry A. Kazakov
2010-12-01 21:35                   ` Properties Maciej Sobczak
2010-12-01 21:45                     ` Properties Dmitry A. Kazakov
2010-12-02  9:57                       ` Properties Maciej Sobczak
2010-12-02 10:26                         ` Properties Dmitry A. Kazakov
2010-12-02 15:25                           ` Properties Maciej Sobczak
2010-12-02 15:46                             ` Properties Dmitry A. Kazakov
2010-12-02 21:11                               ` Properties Maciej Sobczak
2010-12-02 22:19                                 ` Properties Dmitry A. Kazakov
2010-12-03  4:43                                 ` Properties Randy Brukardt
2010-12-03 13:53                                   ` Properties Maciej Sobczak
2010-12-03 21:32                                     ` Properties Randy Brukardt
2010-12-04 22:13                                       ` Properties Maciej Sobczak
2010-12-06 23:30                                         ` Properties Shark8
2010-12-06 23:33                                         ` Properties Randy Brukardt
2010-12-04 17:43                           ` Properties Simon Wright
2010-12-04 20:48                             ` Properties Dmitry A. Kazakov
2010-12-04 22:27                               ` Properties Simon Wright
2010-12-04 22:31                                 ` Properties Vinzent Hoefler
2010-12-03  4:24                         ` Properties Randy Brukardt
2010-12-03  5:00                         ` Properties Shark8
2010-12-03 21:10                           ` Properties Randy Brukardt
2010-12-03 23:34                           ` Properties Jeffrey Carter
2010-12-06  6:02                             ` Properties Brad Moore
2010-12-06 23:25                               ` Properties Shark8
2010-12-01 19:48                 ` Properties Randy Brukardt
2010-12-01 21:10                   ` Properties Warren
2010-12-02  0:03                     ` Properties Shark8
2010-12-02 16:45                       ` Properties Warren
2010-12-02 17:32                         ` Properties Dmitry A. Kazakov
2010-12-02 20:45                           ` Properties Warren
2010-12-02 21:17                             ` Properties Adam Beneschan
2010-12-02 21:40                               ` Properties Warren
2010-12-03  3:34                             ` Properties Shark8
2010-12-03  8:16                               ` Properties Thomas Løcke
2010-12-02 20:52                           ` Properties Pascal Obry
2010-12-02 19:46                         ` Properties Adam Beneschan
2010-12-02 20:38                           ` Properties Warren
2010-12-02 21:39                             ` Properties Jeffrey Carter
2010-12-02 21:55                               ` Properties Warren
2010-12-03  9:33                               ` Properties Anonymous
2010-12-03  3:47                           ` Properties Shark8
2010-12-03  0:09                         ` Properties Robert A Duff
2010-12-03 15:49                           ` Properties Warren
2010-12-03 20:07                             ` Properties Shark8
2010-12-06 21:01                               ` Properties Warren
2010-12-06 23:22                                 ` Shark8 [this message]
2010-12-07 14:37                                   ` Properties Warren
2010-12-08 21:13                                   ` Properties Simon Wright
2010-12-09  1:21                                     ` Properties Shark8
2010-12-06 23:43                                 ` Properties Randy Brukardt
2010-12-07  0:56                                   ` Properties Jeffrey Carter
2010-12-07 11:23                                   ` Properties Maciej Sobczak
2010-12-07 11:51                                     ` Properties Georg Bauhaus
2010-12-07 15:35                                       ` Properties Maciej Sobczak
2010-12-07 17:02                                         ` Properties Georg Bauhaus
2010-12-07 14:39                                   ` Properties Warren
2010-12-03 15:40                         ` Properties Warren
2010-12-03 19:56                           ` Properties Shark8
2010-12-03 20:12                             ` Properties Warren
2010-12-03  5:53               ` Properties Shark8
2010-12-03  9:05                 ` Properties Dmitry A. Kazakov
2010-12-03 19:52                   ` Properties Shark8
2010-12-03 21:14                     ` Properties Randy Brukardt
2010-12-04  5:35                       ` Properties Shark8
2010-12-04 14:23                         ` Properties Peter C. Chapin
2010-12-04 18:53                           ` Properties Shark8
2010-12-13 15:10                       ` Properties Brian Drummond
2010-12-03 22:38                     ` Properties Dmitry A. Kazakov
2010-12-04  3:12                       ` Properties Shark8
2010-12-04 13:19                     ` Properties Georg Bauhaus
  -- strict thread matches above, loose matches on Subject: below --
2010-12-04 19:53 Properties Shark8
2010-12-04 23:27 ` Properties Thomas Løcke
replies disabled

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