Page 1 of 1
determining which classes to use.
Posted: Thu Jul 22, 2010 2:02 am
by yeahoo7
When you have a large website with hundreds of classes and functions, but there aren't any documentations or help available, how do you go about searching for which functions to use when you write the code? Do you just assume that some classes might exist and look for them?
Re: determining which classes to use.
Posted: Thu Jul 22, 2010 2:50 am
by Weirdan
When starting on such project I'd build a list of classes/methods (probably by running doxygen or phpDocumentor on the source tree) and read that first to get the idea of what is actually there and what's not. After that - yes, assume something exists (since I'd have a vague idea of what is available this assumption would have some grounds) and look for that, or assume it doesn't exist and write it yourself/use a third-party library.