Re: A note on personal corruption as a result of using C
- From: spinoza1111 <spinoza1111@xxxxxxxxx>
- Date: Thu, 21 Feb 2008 10:09:32 -0800 (PST)
On Feb 21, 8:11 pm, "Clive D. W. Feather" <cl...@on-the-
train.demon.co.uk> wrote:
In article
<ce140131-84dc-459f-82dc-824169cf5...@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,
spinoza1111 <spinoza1...@xxxxxxxxx> writes
Ah. You've broken the circularity by adding a rider -- it will be
painful (or unnecessarily clumsy) in C. I don't think that is right
because you've picked the wrong target: the null terminator. Those
cases where it matters are rare, the extra complexity of dealing with
Their statistical rarity doesn't mean they're not a problem, because
the speed of digital systems means that in a human, social sense,
statistically rare errors (such as Nuls in data base text fields) can
and do occur all the time,
I disagree. If the database inputs have been validated, there shouldn't
be any such data in the database. If you think the data can get
Wouldn't that be nice. Of course, the reality is otherwise.
corrupted, you need lots of other checks anyway.
But I assume that you wouldn't want any old character in text fields.
You don't want NULs, and you don't want control characters, and you may
What do you mean by "control" characters? Tabs? White space in
general? Wog characters from foreigners? Wouldn't it be nice if
everyone just used what you want?
well not want characters above 126. So you'll need an input validation
YOU are just a programmer, so it's not a question of what YOU want.
Actual people (I refuse to call them "users") need to use balanced
quotes, real mathematical symbols including real greater than or equal
to, Sanskrit, Urdu, and Chinese. Americans need smileys.
C programmer psychology in fact explains why data is trashed in all
too many instances.
function - *this* can be written to cope with NULs. Once you're past
that stage, you can use C strings for everything.
I don't understand why that doesn't work for you.
You're just wrong. C strings cannot without extra programming
represent Chinese characters.
Have you ever noticed that an ordinary computer programmer can never
criticise the language and platform in and on which he claims to be
expert?
No.
Oh, excuse me, you don't associate with ordinary computer programmers,
just destroy careers from afar.
The expressions of loyalty to C expected of an employable C programmer
are just absurd. Basically, on break, at lunch, and in bull sessions,
he has to tell his non-C mates that their language is a piecea shit
while his can "do anything"
Total bollocks. It might be the case where you worked, but that just
shows you needed to get a better employer.
You know very little about the real world. But that was evident in
your assault on Schildt.
--
Clive D.W. Feather | Home: <cl....@xxxxxxxxxx>
Tel: +44 20 8495 6138 (work) | Web: <http://www..davros.org>
Fax: +44 870 051 9937 | Work: <cl....@xxxxxxxxx>
Please reply to the Reply-To address, which is: <cl...@xxxxxxxxxx>
.
- Follow-Ups:
- Re: A note on personal corruption as a result of using C
- From: Clive D. W. Feather
- Re: A note on personal corruption as a result of using C
- From: Stephen Howe
- Re: A note on personal corruption as a result of using C
- References:
- A note on personal corruption as a result of using C
- From: spinoza1111
- Re: A note on personal corruption as a result of using C
- From: Ben Bacarisse
- Re: A note on personal corruption as a result of using C
- From: spinoza1111
- Re: A note on personal corruption as a result of using C
- From: Ben Bacarisse
- Re: A note on personal corruption as a result of using C
- From: spinoza1111
- Re: A note on personal corruption as a result of using C
- From: Clive D. W. Feather
- A note on personal corruption as a result of using C
- Prev by Date: Re: Dealing with ad hominem attacks in comp.programming
- Next by Date: Re: Another flaw in C?
- Previous by thread: Re: A note on personal corruption as a result of using C
- Next by thread: Re: A note on personal corruption as a result of using C
- Index(es):
Relevant Pages
|