Colorado State University

This file defines the header for each page. An optional "icon" image (I use the textbook):

Replace this with info about this class:

CS253: Problem Solving with C++

Spring 2013

Heckendorn

Links to the various pages for this class:

Wish I could do this: * Schedule

Heckendorn’s Law

Heckendorn’s Law is based on a saying of the great Robert Heckendorn:

Never emit a constant error message

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:

Page: Main.Heckendorn
Modified: February 09, 2013, at 08:26 PM
Wiki: pmwiki-2.2.35
CS Department
Apply to CSU | Contact CSU | Disclaimer | Equal Opportunity
Colorado State University, Fort Collins, CO 80523 USA
© 2012 Colorado State University