Functions: how long is too long?
cperciva: I don't find that it's useful to have any limits on the length of functions; I have code with functions (even main!) are hundreds of lines long.I do, however, find that it is essential to limit the width of functions, and if my code doesn't comfortably fit into 80 columns when using 8-column tabs, there's a clear sign that it needs to be broken up.In general, nested loops are far more of a problem than simple "do X, then do Y, then do Z" code.