Heckendorn’s Law is based on a saying of the great Robert Heckendorn:
That is, don’t do this:
ifstream in(filename); if (!in) { cerr << "Bad file\n"; return 1; }
Imagine the frustration of the user who reads this uninformative message. Which file is bad? What was wrong with it? What was the file trying to do with the file? What program was running, anyway?
There’s always more information that you can provide:
Modified: 2013-02-09T20:26 User: Guest Check: HTML CSSEdit History Source |
Apply to CSU |
Contact CSU |
Disclaimer |
Equal Opportunity Colorado State University, Fort Collins, CO 80523 USA © 2015 Colorado State University |