Re: OOP versus Procedural/Functional [message #177563 is a reply to message #177556] |
Mon, 09 April 2012 22:34 |
M. Strobel
Messages: 386 Registered: December 2011
Karma:
|
Senior Member |
|
|
Am 09.04.2012 21:35, schrieb Mr. B-o-B:
> 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.
>
> Am I missing something, or is it just a different approach to the same problem?
>
> Thanks!
>
> Mr. B-o-B
The OOA/OOD way, supported by a selective use of UML, offers one complete path from
requirements to application architecture to implementation.
For the smaller work at hand and a language not complete OO, but with OO extensions,
like PHP, you can choose what suits you best.
Objects are data plus code. I found it quite handy for objects like users, companies,
orders, invoices, etc that correspond to database entities.
/Str.
|
|
|