Xref: utzoo comp.databases:4655 comp.lang.c:25131 Newsgroups: comp.databases,comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: How do you name table/structure elements? Message-ID: <1990Jan17.194804.15864@utzoo.uucp> Organization: U of Toronto Zoology References: <1990Jan16.170217.16718@aqdata.uucp> Date: Wed, 17 Jan 90 19:48:04 GMT In article <1990Jan16.170217.16718@aqdata.uucp> sullivan@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@zoo.toronto.edu