Xref: utzoo sci.lang:6138 comp.lang.c:27328 alt.folklore.computers:2563 misc.misc:9398 comp.software-eng:3298 Path: utzoo!attcan!uunet!ogicse!decwrl!decatl!shlump.nac.dec.com!jumbly!foster From: foster@jumbly.dec.com (Steven Fruitbat Foster) Newsgroups: sci.lang,comp.lang.c,alt.folklore.computers,misc.misc,comp.software-eng Subject: Re: compoundNames Message-ID: <9729@shlump.nac.dec.com> Date: 29 Mar 90 13:37:07 GMT Sender: newsdaemon@shlump.nac.dec.com Followup-To: sci.lang Organization: Digital Equipment Corporation Lines: 36 In article <3230@draken.nada.kth.se>, ianf@nada.kth.se (Ian Feldman) writes... > > Does anyone know the origins (and/or the etymology) of the compound > variable (and other item) naming convention ie, `variableName' > `otherItem' etc., in which the two or more parts of someThing are > delimited by its consecutive parts' beginning letters uppercase > state, with no spaces in between. I always thought it was done with caps at the start too? Like TwoThings etc. We ex-basic programmers often adopt such things (first admission - I've just came out as a basic programmer on the net). AFTER HAVING TO SHOUT ALL THE TIME IT'S REFRESHING to completely do without capitals (as in C, pascal). quite often never ever using them at all. Eventually one Adopts a Happy Medium, with these things being _de rigeur_ in languages such as Modula-2, where it's a necessary convention. I think its a nice way to separate words, even though it leads to identifiers such as ThisIsAVeryDifficultIdentifierForYourIndenterToCopeWith. I suppose the convention came about when restrictions of 6 char identifiers were finally removed. Several languages now have these as clarifiers - the object thisthing, ThisThing and THISTHING can have their types known by how they are writ. Fruitbat. +----------------------------------------------------------------------------+ | Steve Fruitbat Foster | foster@jumbly.dec.com [+@uk.ac.nsfnet-relay] | | Digital Equipment Corp. +--------------------------------------------------| | Reading, UK. | These opinions are not necessarily those of DEC, | | **STUFF THE POLL TAX** | my assorted cuddly toys or anybody whatsoever. | +----------------------------------------------------------------------------+ Homosexuality: Eight out of ten owners (who expressed a preference) said their bats *preferred* it.