Sujet : Re: question about linker
De : tr.17687 (at) *nospam* z991.linuxsc.com (Tim Rentsch)
Groupes : comp.lang.cDate : 03. Dec 2024, 02:23:29
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <86v7w1muem.fsf@linuxsc.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
User-Agent : Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
scott@slp53.sl.home (Scott Lurndal) writes:
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
>
On 01.12.2024 17:42, Bart wrote:
>
On 01/12/2024 15:08, Janis Papanagnou wrote:
>
On 01.12.2024 12:52, Bart wrote:
>
makes typing easier because it is case-insensitive,
>
I don't think that case-insensitivity is a Good Thing. (I also don't
think it's a Bad Thing.)
>
I think it's a _real bad thing_ in almost every context related
to programming.
In my view case-insensitive matching/lookup is clearly worse than
case-sensitive matching. There may be some contexts where a
case-insensitive rule is tolerable or even preferable, but offhand
I'm not thinking of one. Of course sometimes I do want matching
to allow either case, for which 'grep -i' or some other common
tool solves the problem; the key is that it's my choice, not
a fixed choice imposed by a procrustean software system.
But I want my software maintainable and readable. So my experience
is that I want some lexical "accentuation"; common answers to that
are for identifiers (for example) Camel-Case (that I used in C++),
underscores (that I use in Unix shell, Awk, etc.), or spaces (like
in Algol 68, but which is practically irrelevant for me).
>
CamelCase reduced typing speed and adds little benefit when compared
with the alternatives (rational abbreviations, or even underscores).
My complaint about CamelCase (or camelCase, which I put in the same
category) is that my eyes have to work quite a bit harder compared
to text using underscores between words. Reading either form of
camelCase is slower, and also requires more mental effort, relative
to using underscores. Exception: CamelCase for a short noun phrase
(up to perhaps three or four words) seems to work well for type
names, probably because I can recognize the phrase as a whole
without needing (most of the time) to look at the individual words.
That property does not hold for names of variables or functions.
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).