12 methods doesn't seem like a lot of methods.  However, 80 lines per method
seems huge.  I usually shoot for no more than 20.  It does depend on your
code layout, though - if you do a lot of this sort of thing:

        temp1 = someFunction1();
        temp2 = someFunction2();

        // Some big comment
        // more explanatory text
        //  etc.
        myValue = myFunction(
                        param1 = temp1,
                        param2 = temp2,
                        .
                        .
                        .
                )

instead of:

        myValue = mySelfExplanatoryFunctionName( someFunction1(),
someFunction2() );

you can chew up your line count pretty quickly.  For which reason another
thing to shoot for when you can (although this can be hard) is only 2-3
arguments per method.

I know this is just style, and I *don't* want to start any style wars, but
if you can grok your whole method without moving your eyeballs and without
resorting to perl-style line noise I think you're way ahead.

Jaime Metcher

BTW, I'm a big fan of perl "line noise", but I wouldn't recommend it to any
of my friends :)


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jim
Cassata
Sent: Monday, 5 March 2007 6:48 AM
To: cfc zone
Subject: [CFCDEV] how much is too much?


Is there a point where a single cfc should be split into smaller pieces
because of size? I have a cfc with 12 methods in it at 1000 lines and about
20K. Just thought it best to ask, as I haven't found this subject covered in
any blogs or books I have.

Thanks.

Jim




You are subscribed to cfcdev. To unsubscribe, please follow the instructions
at http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]




You are subscribed to cfcdev. To unsubscribe, please follow the instructions at 
http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]

Reply via email to