Complexity of reallocating storage (was users command crap)

Dan Bernstein brnstnd at kramden.acf.nyu.edu
Thu Feb 7 17:04:41 AEST 1991


In article <1991Feb07.013637.6542 at convex.com> tchrist at convex.COM (Tom Christiansen) writes:
> Regarding problem 1, I like to see error messages in this form:
>     program: operations on object: reason

It's even better when you're given an error level: debug, info, warning,
critical, fatal.

> On problem #2, I think that if you have no stderr, (and even if you do
> for system programs) you should also syslog the problem.  It's not a
> perfect solution, but it's surely better than nothing.

Okay, you're right. In alt.sources is my first distributed program that
actually makes some use of syslog. I'm still worried that people will
think syslog is reliable or secure, and I'm very worried that someone
may come to depend on syslog or believe that it isn't worth using better
systems. But for the moment I guess it is the best alternative.

> I know people say not to check for errors that you don't know how to
> handle.  I think they're wrong. That's what asserts are all about.

Huh? An assertion is just one type of error handler, and a very clumsy
one at that. Dumping core is rarely the right way to handle an error in
a production program.

---Dan
Stupidity, n.: An overwhelming desire to rewrite one-line shell scripts
as 36-line Perl scripts so they run 6% faster. See Christiansen, Tommy.



More information about the Comp.unix.programmer mailing list