RE: [PHP] OOP vs procedural
| From: | Hardik Doshi | Date: | Wed, 07 May 2003 14:49:07 +0000 |
| Subject: | RE: [PHP] OOP vs procedural | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146677@lists.php.net to get a copy of this message | ||
I have a question on OOP.
What you guys are using for calling functions withing
class? I am putting functions in class and calling it
by classname::function name (place where there is no
need to create an object). Is it the correct way to
calling it? I thought there is no need to allocate
memory for the object of class.
Please give your thoughts.
Thanks
Hardik
--- Martin Towell <martin.towell@world.net> wrote:
> I've seen only one reply to the original message, so
> here's my 2c worth
>
> I use OO to prevent too many global variables
> floating around the place. In
> this company, there's 1,000's of globals, and very
> often they interfere with
> each other. I am (with the help with someone else)
> trying to move all the
> core code to use OO so we don't have this problem.
>
> I think that there's a place for both styles.
> Self-contained functions can
> stay by themselves, functions that interact with
> each other naturally lend
> themselves to objects...
>
> -----Original Message-----
> From: Info@Best-IT [mailto:info@best-it.biz]
> Sent: Wednesday, May 07, 2003 1:59 AM
> To: PHP general
> Subject: [PHP] OOP vs procedural
>
>
> Between these 2 styles of writing PHP which is
> better usually:
>
> C-style, using include files containing paths to
> libraries?
>
> Object Oriented: everything is structures with class
> files?
>
> Thanks,
> /T
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com