Xref: utzoo comp.databases:4658 comp.lang.c:25134 Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!aplcen!unmvax!bbx!bbxsda!scott From: scott@bbxsda.UUCP (Scott Amspoker) Newsgroups: comp.databases,comp.lang.c Subject: Re: How do you name table/structure elements? Message-ID: <551@bbxsda.UUCP> Date: 17 Jan 90 16:14:43 GMT References: <1990Jan16.170217.16718@aqdata.uucp> Reply-To: scott@bbxsda.UUCP (Scott Amspoker) Organization: Basis International, Albuquerque, NM Lines: 20 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". >[example deleted] I've seen a lot of older code that used "table/structure descriptive" field names. This is probably because old C compilers did not keep seperate name spaces for field names. Therefore, if you had a field called "len" that appeared in several different structures you would probably have to make it unique somehow. Today's compilers are a little smarter and a I prefer to let the structure variable (or pointer) itself act as the "qualifier". -- Scott Amspoker Basis International, Albuquerque, NM (505) 345-5232 unmvax.cs.unm.edu!bbx!bbxsda!scott