Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] using rusage



2008/6/22 Curt Sampson <cjs@example.com>:

> For any software you're modifying, you essentially pay a maintenance
> charge on every single line of code, every month.

Of course. But this is never a good reason to not program defensively.
In C, you just have to accept that you are going to need some guard
code. You should certainly factor that guard code well; macros can be
your friend here.

I find that any maintenance charge that defensive programming may
introduce is less than that of debugging a catastrophic failure that
lost data because "malloc() can never fail".

-- 
Cheers,
Josh


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links