Re: OOP vs procedural
| From: | James | Date: | Tue, 06 May 2003 16:17:42 +0000 |
| Subject: | Re: OOP vs procedural | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146537@lists.php.net to get a copy of this message | ||
Depends on your view point. I think PHP was never originally intended to be
written in OO but I favour it for my stuff and I think a lot of other people
do too, including (rather amazingly :) the PEAR lot who are rapidly becoming
what CPAN is to Perl. One of the things to think about is the upcoming
release of version 5 which is going to see a huge leap in the OO part of
PHP. There is masses of new features such as private, protected,
namespacing to name a few. If you intend to a) stick with php and b) build
complicated "application frameworks" then consider the fact that they are
intent on pushing out a new version of PHP with a much better object
approach and with this in mind youll see a lot more object based
developments.
Regardless of your approach with OO or libs I think the 3rd style which is
_MUCH_ more important is the development of systems with data independence.
Creating systems which run entirely in XML is the future. The days of hard
coding HTML into your code is going to change. Seperating application
logic/business rules is so much more important when your working with large
scale apps. Running server side XSL styles through your app's XML output is
what you should aim for. Given that the web is ever expanding and youll see
new display langauges for all sorts of new fangled internet gadgets youll
regret not doing it!
jim
"Info@Best-It" <info@best-it.biz> wrote in message
news:BADD4609.5B9D%info@best-it.biz...
> 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
>