Re: xmalloc string functions
- From: Kelsey Bjarnason <kbjarnason@xxxxxxxxx>
- Date: Mon, 4 Feb 2008 15:43:55 +0000
[snips]
On Mon, 04 Feb 2008 22:23:29 +0100, Richard wrote:
That *you* cannot conceive of cases where allocation failure may not be
fatal isn't relevant: others can.
You seem to miss the point. I can. But they rarely happen
Really? I'm sure you'll back this up with data from a wide-scale formal
research project analyzing that very question, right? Right?
Somehow I suspect you're blowing smoke out your backside, but I'm willing
to be wrong there - just show me the study.
That said, common, rare or occasional really doesn't make arse all
difference. The fact is allocations _can_ fail. A good - read
"competent" - programmer realizes this and deals with it. Deals with it,
ideally, in a manner which is something more than simply saying "I'm too
freakin' lazy to write error handling code, so abort."
and the fact
that YOU fail to see the fact that you made an arse of yourself by not
reading the documentation properly is not my issue.
Sorry, I did read the documentation. You know, *both* parts about
allocation, which cause it to involve a contradiction, as well as other
parts which clearly rest on the use of _one_ of the conflicting methods.
Sorry, which part didn't I read correctly?
I still have some sympathy for NOT checking all mallocs in certain
situations. It matters not about other processes when ones own can not
malloc 32 bytes.
I have no idea where you get this 32 bytes crap from. Xmalloc and glib
fail just as handily on 32KB or 32MB as on 32 bytes. Maybe you've never
needed to allocate anything more than 32 bytes at a time; others have.
What have YOU contributed to OSS that gives you the right to rubbish
such people as the Gnome development team?
What has being an OSS developer got to do with anything? Is there some
magic which prevents anyone but OSS coders writing decent code, or being
able to recognize design flaws?
One of life's sureties is that there's generally a reason for most
things.
I'm sure there are. Yet thus far, the only actual "reason" offered for
this design decision has been sheer laziness - that it's just too hard,
too messy, too ugly, to write error handling code. Yeah, well, nobody
said programming was easy.
It is easy to criticise. not so easy to build a project, in your free
time, like Gnome and QT etc.
I don't recall anyone saying it was easy. I do, however, see you
apparently trying to justify a _bad_ decision based, again, on nothing
more than laziness.
Maybe the Gnome developers *did* have some legitimate reason for doing
what they did. Let's stipulate that for the moment. Why, then, can
those defending the design - you, for example - come up with no defence
for it other than laziness?
Pretty sad, if that's the best reason for it.
.
- References:
- Re: xmalloc string functions
- From: Richard
- Re: xmalloc string functions
- From: Kelsey Bjarnason
- Re: xmalloc string functions
- From: Richard
- Re: xmalloc string functions
- Prev by Date: Re: xmalloc string functions
- Next by Date: Re: Why no reset() function?
- Previous by thread: Re: xmalloc string functions
- Next by thread: Re: xmalloc string functions
- Index(es):
Relevant Pages
|