Re: OOP versus Procedural/Functional [message #177557 is a reply to message #177556] |
Mon, 09 April 2012 19:59 |
J.O. Aho
Messages: 194 Registered: September 2010
Karma:
|
Senior Member |
|
|
Mr. B-o-B wrote:
> I was curious about peoples thoughts in regards to OOP with PHP.
>
> Are there pro's/con's of writing OOP code versus procedural/functional coding?
>
> Strictly speaking for PHP, I do the bulk of my coding as
> procedural/functional. I really haven't found any added benefit to going the
> OOP route.
There is two minds about OOP, there are those who thinks is the way to go and
those who thinks it don't give any benefits.
> Am I missing something, or is it just a different approach to the same problem?
It's another way to solve the problem and there is a third way which kind of
mixes both worlds.
Read some more about OOP in general and get a bit better insight for example:
http://www.inf.ufsc.br/poo/smalltalk/ibm/tutorial/oop.html
The site may or may not be good, just got it as a hit on google, never read it
myself.
If you get an aha-moment, then OOP maybe is something for you, but if you feel
it's just making things complicated, than stay with traditional functional
programming.
Many of the major big projects uses OOP, so it can be a good point in knowing
how it works.
--
//Aho
|
|
|