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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10ad19,23963231b5359f74 X-Google-Attributes: gid10ad19,public X-Google-Thread: 11440e,23963231b5359f74 X-Google-Attributes: gid11440e,public X-Google-Thread: 103376,23963231b5359f74 X-Google-Attributes: gid103376,public X-Google-Thread: 1073c2,23963231b5359f74 X-Google-Attributes: gid1073c2,public X-Google-Thread: 10a146,23963231b5359f74 X-Google-Attributes: gid10a146,public X-Google-Thread: 101deb,23963231b5359f74 X-Google-Attributes: gid101deb,public X-Google-Thread: 107a89,23963231b5359f74 X-Google-Attributes: gid107a89,public X-Google-ArrivalTime: 2001-05-27 09:53:33 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: Shankar Unni Newsgroups: comp.lang.ruby,comp.lang.ada,comp.lang.awk,comp.lang.clarion,comp.lang.java.programmer,comp.lang.pl1,comp.lang.vrml Subject: Re: Long names are doom ? Date: Sun, 27 May 2001 09:52:00 -0700 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <3B1130B0.418BECBA@webnexus.com> X-Mailer: Mozilla 4.75 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 References: <3B0DBD4A.82943473@my-deja.net> <3B0DD011.88FCD00E@acm.org> <83WP6.3874$yc6.728572@news.xtra.co.nz> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.lang.ruby:9999 comp.lang.ada:7815 comp.lang.awk:2618 comp.lang.clarion:20421 comp.lang.java.programmer:71143 comp.lang.pl1:669 comp.lang.vrml:3352 Date: 2001-05-27T09:52:00-07:00 List-Id: AG wrote: > I once saw some code which used (in the same namespace) identifiers > PassThruID and PassThroughIDs. They were apparently introduced > by separate programmers over time and worked fine until someone > confused them. Took ages to sort it out. So, while those two aren't > even at 31 char limit, one could argue that 6 char limit would have > precluded that sort of error :) Really? Would it have been somehow been a lot clearer, and harder to confuse the two, if they had been, say, "PTID" and "PTIDS"? I'd think the opposite, actually.. You're right in that infinitely long names don't help beyond a certain point, but 6 chars is ridiculous. Forcing ultra-short names has the effect of people using an acronym soup for variable names, and "ABCXQZ" is pretty easy to confuse with "ABCQXZ". Here's an *actual* example of code I saw posted in another newsgroup (names erased to protect the guilty - or in this case, the innocent!). And these are 12-char names - think how much more readable this would have been with 6-char names: > double sicjpcisj=*scratchptr; > double sicjncisj=*(scratchptr+1); > double cicjpsisj=*(scratchptr+2); > double cicjnsisj=*(scratchptr+3); > double qcksicjpcisj,qcksicjncisj; > double qsksicjpcisj,qsksicjncisj; > double qckcicjpsisj,qckcicjnsisj; > double qskcicjpsisj,qskcicjnsisj; -- Shankar.