Deutsch   English   Français   Italiano  
<86iks0mei7.fsf@linuxsc.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch <tr.17687@z991.linuxsc.com>
Newsgroups: comp.lang.c
Subject: Re: question about linker
Date: Tue, 03 Dec 2024 17:19:12 -0800
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <86iks0mei7.fsf@linuxsc.com>
References: <vi54e9$3ie0o$1@dont-email.me> <vidd2a$18k9j$1@dont-email.me> <8734j9sj0f.fsf@nosuchdomain.example.com> <vidnuj$1aned$1@dont-email.me> <87ttbpqzm1.fsf@nosuchdomain.example.com> <vie0j5$1g968$1@dont-email.me> <vieun5$1mcnr$3@dont-email.me> <vihamj$2cflq$1@dont-email.me> <vihili$2f79m$1@dont-email.me> <vihu63$2ipg0$1@dont-email.me> <vii3kq$2kmc8$1@dont-email.me> <vikqvf$3fhce$1@dont-email.me> <jNm3P.7909$XuU6.3431@fx40.iad> <86v7w1muem.fsf@linuxsc.com> <vin6em$49d1$1@dont-email.me> <glF3P.41974$tKZd.29258@fx18.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Date: Wed, 04 Dec 2024 02:19:12 +0100 (CET)
Injection-Info: dont-email.me; posting-host="24be5a3bcc5136b6a89c55a2b150290e";
	logging-data="477935"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/HdxKmc9taG9E7mHzbxoDW9YvGjLMFDjA="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:lKd13DMhJGXukNVCFbe4E+OMblQ=
	sha1:ybccN2O1PZ/HqQKo/I+RpHoF9r0=
Bytes: 2764

scott@slp53.sl.home (Scott Lurndal) writes:

> David Brown <david.brown@hesbynett.no> writes:
>
>> On 03/12/2024 02:23, Tim Rentsch wrote:
>>
>>> scott@slp53.sl.home (Scott Lurndal) writes:
>
>>
>>> For the most part I don't use abbreviations in the usual sense of
>>> the word, although I do sometimes use short non-words in a small
>>> local context (here "short" means usually one or two letters, and
>>> never more than four or five).
>>
>> A general guideline followed by most people is to have the length of
>> identifiers (or their semantic content) increase with larger scope of
>> the identifier.  "i" is fine as a counter of a small loop, but you would
>> not want to use it for a file-scope static.
>>
>> Which abbreviations are appropriate is often context-dependent.  As long
>> as the context is clear, they can be very helpful - in a genetics
>> program, you would definitely want to use "DNA_string" in preference to
>> "deoxyribonucleic_acid_string" as an identifier!
>
> I agree with both of these.   In addition, when processing
> character strings, I'll often use 'cp' as a character pointer.

My rule is not to use abbreviations, only words (with the
short-non-word exception noted earlier).  Widely known
and commonly used acronyms, such as DNA, HTML, or TCP,
are considered words, not abbreviations.