E
Ersek, Laszlo
The problem should be fixed at the right place.
[snip mockery]
[snip cursing]
I believe that my remark above is a perfectly crafted work of Usenet art;
the culmination of years of newsgroup experience.
There's no doubt about that. It's poignant and witty, indeed. A pure
essence of vileness.
You might want to examine the reasons why you reacted to it, it clearly has
found a collateral target in you also.
Yes, and I was expecting you to make this remark as well. (I'm saying
this in a neutral voice.)
I'm not used to being called an idiot, however indirectly. I'm convinced
you called me just that in your earlier post, to which I tried to
respond with arguments. You ignored those (perhaps because you found
them weak). I happen to share Ertugrul's view in this matter (or so I
perceive), hence I was a bit predisposed to become a target. I kind of
felt that technical opinion, and consequently, myself, attacked by this
outrageous (and certainly, witty) comment.
I don't quite follow the numerics of your reasoning about who you would rather
work with,
A bit less smart, but a bit more humane. Strictly in the "still smart
enough" zone.
The root of the problem here is that we are discussing inanimate objects, which
serve us according to our requirements; to that extent they are ``good'' or
``bad''. Unlike a mother, the operating system is not an independent /person/
who suffers from taking on additional responsibilities for the sake of others.
The very language does not fit.
Truth to be told, I didn't read this mother-child antecedent (there's no
way to keep up with such a stream of posts), but even a very bad analogy
doesn't deserve such a comment. Or whatever, I guess I need to grow a
thicker skin. I still think you may have been seduced a little by your
own craft in creating punchlines (cf. "narcissism") -- not that I don't
like to luxuriate in my own (imaginary) smartness
Oh well, let's go on with the technical stuff. Sorry for the bad words,
too.
So no, I don't think we should clean up after ourselves because the OS
cannot be trusted to do that. (I don't want to use such an OS.) I simply
feel my mental hygiene ("pedantism") disturbed when I don't clean up on
a *succes* exit. (For the librarization of an application, stuff should
be cleaned up even on error exit paths, and I sometimes do that too if
the app is not multi-threaded.) I admit such hair-splitting may have
disadvantageous performance characteristics and may involve some risk,
and if it became unfeasible in any specific case, I'd probably surrender
it with conditional compilation. (I can't write a malloc() without
thinking about a free(), but I could surround the latter with an
#ifdef.) I think when we're on our way towards exit(EXIT_SUCCESS),
that's an incidental circumstance wrt. releasing allocated objects whose
usefulness has ceased due to more localized / specific grounds. (I'm
sure this doesn't make any sense.)
Perhaps plugging the leaks of an inherited monster business app written
in C is only possible in the way you suggest (patching a gc under the
app), but I still believe that choosing the other approach for new apps
shouldn't preclude them being treated as "actual software".
Sorry for repeating myself.
Cheers,
lacos