On Mar 21, 3:08 am, (e-mail address removed) (Mark
Hobley) wrote:
How should I test for a null pointer within a C program?
Presumably the following will work:
[snip]
if ( !ptr ) { dosomething }
My follow-up question to the group is, how do you read the above line
of code in your head (or out loud)?
I find "if not non-null pointer" quite awkward.
FWIW: "if not ptr" where I usually vocalise "ptr" as "pointer".
Why not spell it out as I do consistently in my "convoluted" code
after my pre-Szymonyi Hungarian?
Why spell it out when the abbreviation is commonly known? In the case
See the discussion below. My international software and English
teaching experience has taught me not nought but aught, to be very
dubious about propositions to the effect that "everybody", even by gum
people in the next county, understands some abbreviation.
So what guideline do you apply to people who name variables in their
native language? I certainly have trouble understanding code where
variables are in Portuguese (which I don't know, obviously). I suspect
others are equally baffled by non-abbreviated words in a language they
don't know.
World received English or Basic English (the language of world
aviation).
Abbreviations or not, commonly known or not, there's going to be
someone who doesn't know the word(s) you use. I'll defer to convention
rather than try catering to everyone in this case. It seems you do the
same, except with a different naming convention.
No, my international experience shows that World Received or Basic
English is measurably better.
However, a good programmer, in my view, sees good code even in another
language and set of conventions. For example, I could see that Willem
had written a great recursive replace() last month although he used
one letter abbreviations in a mathematical style.
It wasn't my intention to suggest you were. But you do strike me as
the kind who fights futile battles without realizing it.
(Sigh). These battles seem only futile in the corporation, but the
corporation is the problem as witness the corporate-funded battle
against health care (with the exception of pharmaceutical companies).
http://xkcd.com/386/
... clearly that you're paranoid, unsuited to professional
programming, and unable to acknowledge your own weaknesses. I can
easily see how you couldn't cut the mustard as a professional
programmer by reading your posts to this newsgroup. There's nothing
wrong with being unsuited to professional programming, of course, it's
not a threat to your manhood or your programming ability. Ours is
simply not the easiest field to work in. But rather than come to terms
with this, you believe yourself to be superior and blame everyone else
for pushing you out.
Julienne, I was in the field three times as long as the average
programming career which is ten years, and I left the field
voluntarily for a second career, as normal people often leave it, at
the age of 55.
This has given me in fact the independence to finally be clear on the
problem: that programmers need to engage in what Habermas calls
"critical reason" (this was obvious to Gerald Weinberg) while in the
corporation, reason itself is operationalized and quite subordinate to
the wealth of majority stockholders.
I started out long before most people here: my first program was
machine language, and after using assembler for a considerable amount
of new development that was needed at the time, I debugged a Fortran
compiler in machine language...etc., including the Nash true story,
etc.
But even then I was struck by the social impotence of programmers who
uniformly had to truckle like Dickensian clerks to management whim in
order to be employable, and who were constantly being deskilled.
I love it when a woman says "this is not about your manhood" because
she's engaging in negative logic. That's exactly what she means, and
she means to exert a quantum of social power that is negatively based
on her more globalized impotence as regards society, over men coded by
media as foolish and pathetic because they're not rich. As Lacan saw,
phallus worship has many guises.
I in fact celebrate the fact that I no longer have to work with, for,
or over pompous fools like Heathfield or fraudsters like Dweebach.
It's called freedom, dear.