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=0.1 required=5.0 tests=BAYES_05,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d95b511473b3a931 X-Google-Attributes: gid103376,public From: giuliano@ix.netcom.com(Giuliano Carlini) Subject: Re: Language Choice and Coding style Date: 1996/06/21 Message-ID: <4qenhc$o87@dfw-ixnews9.ix.netcom.com>#1/1 X-Deja-AN: 161420175 references: organization: Netcom x-netcom-date: Fri Jun 21 12:52:44 PM CDT 1996 newsgroups: comp.lang.ada Date: 1996-06-21T12:52:44-05:00 List-Id: In nasser@apldbio.com (Nasser Abbasi) writes: > > >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 >Write_In_Clear_And_Nice_Way_Like_This ?? > >Is this a cultural thing? Yeah it is. >Most C and C++ programmers are more hippy , 1960's type, type of people, >the anti-establishment crowd, who just want to be different, and so > >While the Ada programmers seem to be more of the conservative type, >the type who would never go faster than 55 mph even in the middle of dead >valley where there is no traffic for miles on stretch, the type who But, not in this way. I've seen both "hippies" and "straights" using both languages. In fact a C++ programmer who wanted to be different Would_Write_Like_This because no other C++ programmers do. TheyWriteLikeThis for the same reason that Ada programmers Write_Like_This. They both follow the conventions which existed when they started programming in that language. C++ programmers adopted the Smalltalk style. I believe the Smalltalk style came from following the Simula style. Ada programmers followed the Pascal style who I believe had followed the Algol style. These styles started in different places in different times by different people, so it isn't surprising that two different styles were created. And given that people tend to adopt what has come before, it is normal that they both still exist today in two different domains which don't interact much. Personally, I prefer Reading_Identifiers_Like_This. But I adopt the convention of the language I'm writing in. To do otherwise would silly. g