FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » OOP versus Procedural/Functional
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: OOP versus Procedural/Functional [message #177563 is a reply to message #177556] Mon, 09 April 2012 22:34 Go to previous messageGo to previous message
M. Strobel is currently offline  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.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Does PHP5 treat $_SERVER['PHP_AUTH_USER']) differently?
Next Topic: Clean PDO-MySQL Statement
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 18:52:41 GMT 2024

Total time taken to generate the page: 0.07655 seconds