I think this is insane to claim this type of stuff. We _need_ private functions as much as we _need_ interfaces. We like private and package methods because it allows up to show intent. Its a nice way of saying hey you out there...don't touch this. The reality is nothing is sacred and developers have ways of getting to private method restrictions. Instead I have taken up to using namespace in my CFCs called intent. In there I have things like intent:finally="true" intent:required="true" intent:static="true" intnet:access="protected". This allows me to clearly convey my intent of how I expect my method, property or component to be used. I much rather a developer just abuse my object instead of creatively finding ways around the designed intent.
Adam Haskell On Thu, Sep 4, 2008 at 8:52 AM, Tom Chiverton <[EMAIL PROTECTED]>wrote: > > On Thursday 04 Sep 2008, Alan Livie wrote: > > You said 'Do we really _need_ private methods? Why?' > > I suppose the answer is NO we don't need them but they are nice to have. > > There's no way to sensibly write a well encapsulated object more complex > than > a VO without private methods, is there ? All your methods will be hundreds > of > lines long, and have tons of cut and pasted code so as to avoid exposing > internal functions as methods for the world to run. > > -- > Tom Chiverton > > **************************************************** > > This email is sent for and on behalf of Halliwells LLP. > > Halliwells LLP is a limited liability partnership registered in England and > Wales under registered number OC307980 whose registered office address is at > Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A > list of members is available for inspection at the registered office. Any > reference to a partner in relation to Halliwells LLP means a member of > Halliwells LLP. Regulated by The Solicitors Regulation Authority. > > CONFIDENTIALITY > > This email is intended only for the use of the addressee named above and > may be confidential or legally privileged. If you are not the addressee you > must not read it and must not use any information contained in nor copy it > nor inform any person other than Halliwells LLP or the addressee of its > existence or contents. If you have received this email in error please > delete it and notify Halliwells LLP IT Department on 0870 365 2500. > > For more information about Halliwells LLP visit www.halliwells.com. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CFCDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfcdev?hl=en -~----------~----~----~----~------~----~------~--~---
