... I agree with everyone else... if you want, you can make a function with switch... but there's no point really...
<[EMAIL PROTECTED]> Haseeb: > hi, > i have heard a lot of people commenting about the coding style of > other programmers. i think everyone has his own style. but i also say > that there should be a standard that should be followed by everyone. > i know that there are many good tutorials that explain how to code. > anyway i have my own style. i like keeping all the functions in one > file and the include the file whenever i need any function. now there > are few problems in that. i prefer writing functions for almost > everything sometimes the functions file grows to over 5,000 lines. > now this is not good. when ever i need one simple function i had to > include all the file. now i also don't like keeping functions in > every file that uses it. this is becoming a big problem for me. also > i have seen some programmer that prefer to use only one file as front > end and place switch or if conditions and include other files > depending on the condition. i think its good way of doing things but > when the magnitude of the projects grows i find it very difficult for > me to keep working. i find it very hard to concentrate. > > this is the problem, i have thought of the solution i.e. divide the > functions into files. and then include only that file that has the > function. but i thought i would ask you people how you handle this. > may be i would find something that suits me more then this solution. > > thanx in advance. > Haseeb > > > ____________________________________________________ > IncrediMail - Email has finally evolved - Click Here -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php