begin quoting Darren New as of Fri, Mar 14, 2008 at 08:47:51PM -0700: > David Brown wrote: > >maximum length of a function is inversely proportional to the complexity > >and indentation level of that function." > > Inversely? That doesn't sound right to me. The more complex and > indented a function is, the shorter it should be?
Sure. Simple-but-long code is okay. Complex-and-short is okay. Complex-but-long isn't okay. Make it shorter. Simple-but-short isn't okay. Roll the function back up to the caller. -- Doing just one thing is hard, knowing when done is almost as bad. Stewart Stremler -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
