The thing I find it very hard to calibrate on, though, is comments, including documentation comments on classes and methods. It tends toward the extremes of either commenting everything in the
createUser(); // creates user
style or of just dumping out thirty lines of optimized bit-banging with no explanation of what that code even sets out to achieve. Maybe somebody has a good solution for this? createUser(); // creates user, but does not create user preferences until requiredThe coding standard I've cobbled together (based purely on my own pet peeves) calls these "history comments", and after about many rounds of "see this right here? That's history, take it out" has pretty much eliminated them. Of course, the coding standard doc has all of those examples along with terribly repetitive prose explaining why it's bad, and so I've stopped even looking at the coding standards doc lest my eyes start twitching uncontrollably, but it seems like the AIs need to accumulate cruft somewhere, and I'd rather it be there than in the code?