From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,d95b511473b3a931 X-Google-Attributes: gid109fba,public X-Google-Thread: 1014db,d95b511473b3a931 X-Google-Attributes: gid1014db,public X-Google-Thread: 103376,d95b511473b3a931 X-Google-Attributes: gid103376,public From: The Amorphous Mass Subject: Re: Language Choice and Coding style Date: 1996/06/21 Message-ID: #1/1 X-Deja-AN: 161415939 distribution: world references: x-sender: robinson@green.weeg.uiowa.edu content-type: TEXT/PLAIN; charset=US-ASCII organization: University of Iowa, Iowa City, IA, USA mime-version: 1.0 newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++ Date: 1996-06-21T00:00:00+00:00 List-Id: On 21 Jun 1996, Nasser Abbasi wrote: > > Tonight I'd like to ask a question I've always been afraid to ask. > > I'd like to know why do C and C++ programmer > > pchWriteInThisStargeAndHardToReadWayLikeThis while the Ada programmers Except for the "Hungarian notation" silliness, the idea of spellingVariableNamesLikeThis was originally a Smalltalk and/or Pascal idiom, and it has become nearly universal in GUI libraries (again I think because of Smalltalk's influence). C programmers use variable names like x, i, p, fp, str. :-) > Write_In_Clear_And_Nice_Way_Like_This ?? I have seen that as well. That's a common unix programming idiom (except_that_the_names_are_often_all_lowercase) that can be found in the Standard C environment as well. > Is this a cultural thing? I think it's a precedent thing. The practice of squashingWordsTogether is firmly established in some camps, and newcomers are exposed to it and pick it up. Th prct of abbr evth is cmn in oth cmps, and newcomers there pick it up, etc. If your first book was Learn C on the Macintosh (whose has a Pascal-based interface) thenYouProbablyBelongToTheFirstCamp. If your first book was K&R, u prb blng to oth cmp. If you leaned on a PC, vndjskaThen jkuidsYou ksldjfBelong jdtd84To zxThe nmdsadHungarian ncmqCamp. /**James Robinson*********************** "If a fatal error occurs, the program should not be allowed to continue." -- Oracle Pro*C User's Guide *************james-robinson@uiowa.edu**/