RE: [PHP] OOP vs procedural
| From: | Vania Smrkovski | Date: | Tue, 06 May 2003 23:32:47 +0000 |
| Subject: | RE: [PHP] OOP vs procedural | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146596@lists.php.net to get a copy of this message | ||
Personally,
I hope PHP continues to develop its OOP flavorings. Having been in a
company that uses an Object-Oriented paradigm "correctly", that is to say,
professionally, thought-out-in-advance, I have for the first time in eight
years of trying to study and use OOP seen just how much sense it makes!
Procedural coding is useful, especially for those who need to be able to
code "on-the-fly", and for me, learning PHP, it was the only way for me to
go, even though I was tempted to use PHP's OO capabilities. But I just
can't help but think that, tackling a huge project, OOP just makes things
work right more often the first time, even if it forces you to do a lot more
thinking in advance.
I don't know if anyone else agrees, but if the PHP developers are
interested where PHP 5 might go, my hope is that it will allow for more of
the OOP support.
_________________________
Vania Smrkovski
Internet Design and Programming
http://pandorasdream.com/
-----Original Message-----
From: Martin Towell [mailto:martin.towell@world.net]
Sent: Tuesday, May 06, 2003 7:17 PM
To: 'Info@Best-IT'; PHP general
Subject: RE: [PHP] OOP vs procedural
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