Re: OOP vs Functions and includes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I agree with Bruno.
It depends on the project and project's situation.

Your request for clarification is about Prcedural Programming VS OOP

It realy depends on the situation and project scope.
And this is general not only in PHP but in all the programming
languages where prcedural programming is allowed.

OOP comes into play more when you need a higher level of control over
updates and rewriting the code in business time-value environment
while having team members to communicate althrough with a given plan.
It's more of an architectural way of doing things. However, for small
projects and one, two developer programming team OOP comes so handy
and organized. In real time programming on PHP projects OOP techniques
make a PHP application realy become an application by mean! rather
than dynamic pages. True that you can do it with includes and function
call alone but, and a big BUT you're on a web designer bench then!
that is you're a webdesigner that knows coding!
However, with OOP you can have designers do their work and you can
code w/o interrupting their work and vice versa.

Small applications that are developed with the aim of having pages to
serve some purpose can be done either way! Big projects that involve
more effort, planning and teamwork can't take includes and function
calls as their bones and muscles, however, it can be done!

Frameworks are not realy good examples for OOP ! 
I would like you to take a look at PEAR framework's packages instead such as 
IT, NET, HTTP, DATE or even the stand alone Smarty extension as
examples for you to know the reason why you should use OOP or not.
http://pear.php.net
http://smarty.php.net

Frameworks to classess are what homes are for familiy members. 
And you only make it into a home when it works. And to be said NOT all
the homes and live types are good for all the families and family
members. :D

Hope that serves the purpose. 

And ps. You could signup with PHP-General ML it's more general PHP
like this question.

Regards,
M.Saleh.E.G
Cell: +97150-4779817

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux