How do you name table/structure elements?
Henry Spencer
henry at utzoo.uucp
Thu Jan 18 06:48:04 AEST 1990
In article <1990Jan16.170217.16718 at aqdata.uucp> sullivan at aqdata.uucp (Michael T. Sullivan) writes:
>I would like to get some feedback as to how and why you name your
>database table rows or C structure elements. As far as I can tell,
>there are two camps: the "plain descriptive" and the "table/structure
>descriptive"...
>
> plain descriptive table/structure descriptive
> ----------------- ---------------------------
> name cu_name
One thing to bear in mind is that the cu_name practice is to some extent
a historical accident. Once upon a time (in a galaxy far far away :-))
all struct members lived in a single common name space, so it was vital
to make the member names in different structures different. This is how
the prefix-with-an-abbreviation-of-the-struct-name convention arose.
Personally I see no reason for the prefixes any more; I'll go with the
plain descriptive style now.
--
1972: Saturn V #15 flight-ready| Henry Spencer at U of Toronto Zoology
1990: birds nesting in engines | uunet!attcan!utzoo!henry henry at zoo.toronto.edu
More information about the Comp.lang.c
mailing list