determining which classes to use.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
yeahoo7
Forum Newbie
Posts: 1
Joined: Fri May 16, 2008 12:31 am

determining which classes to use.

Post 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?
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: determining which classes to use.

Post 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.
Post Reply