|
I've worked at places where the cfc files got to be 20 or 50
thousand lines of code long. I recall mentioning that I thought
something seemed a little amiss in their design to let that happen.
I also recall concluding that they really didn't want to hear that. Anywhoo... use Java as an example. A cfc should represent an object. The cffunctions within are individual methods on that object. So in most apps, you'd have one cfc for "users", another one for "orders" and so forth. If "orders" gets to be way big, then you probably need to break it into "inventory" and "fulfillment", for example. Hopefully you get the idea, it hard to be specific without knowing the business process (which always comes first, btw, then the code). Inside each cfc/object is the definition & data access methods germane to that "being". Getters, putters, deciders... In brief, group your cfcs primarily according to the business taxonomy (people, places, things), which extend a few core cfcs that are dedicated to application function (login, security, logging, etc). You can also leverage an existing framework and save tons of trial & error development. It's frequently faster, and exercises the learning muscles in a more productive way. Al On 6/17/2014 7:25 AM, Jason Allen
wrote:
-- -- online documentation: http://openbd.org/manual/ http://groups.google.com/group/openbd?hl=en --- You received this message because you are subscribed to the Google Groups "Open BlueDragon" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout. |
Re: [OpenBD] How big do you let your cfc's get?
'Alan Holden' via Open BlueDragon Tue, 17 Jun 2014 10:56:18 -0700
- [OpenBD] How big do you let your cfc's g... Jason Allen
- Re: [OpenBD] How big do you let you... 'Alan Holden' via Open BlueDragon
- Re: [OpenBD] How big do you let you... Bryan Stevenson
- Re: [OpenBD] How big do you let... Charles Heizer
- Re: [OpenBD] How big do you... Bryan Stevenson
- Re: [OpenBD] How big do... 'Alan Holden' via Open BlueDragon
- Re: [OpenBD] How b... Jason King
- Re: [OpenBD] How b... Rawk
- Re: [OpenBD] H... 'Alan Holden' via Open BlueDragon
- Re: [OpenBD] How big do you let... Bryan Stevenson
- Re: [OpenBD] How big do you... Jason King
- Re: [OpenBD] How big do... Bryan Stevenson
