View Single Post
Old 12-03-2008   #1
xcoder
Ma ghayro
 
xcoder's Avatar
 
Last Online: 04-19-2018
Join Date: Dec 2005
Posts: 5,592
Thanks: 1,765
Thanked 4,201 Times in 2,361 Posts
Groans: 12
Groaned at 18 Times in 11 Posts
Post PHP5 OOP or Procedural

I don't know how many PHP developers we got in VC community, i just thought about opening this thread for who it may concerns.

As you may know PHP5 best feature is the big improvement done in object modeling (interfaces, access modifiers...) while php4 has very limited OOP capability.
But still some people believe that procedural has a better performance and no need for OOP in PHP since PHP was not made to be OOPed such as java and c++

Personally, i switched lately (1 month ago) to OOP and still very excited about the idea, i created some large and complex classes and doing just fine. It's way easier to modify extend using inheritance and of course debug since your page code will be way smaller than a procedural.
Yet, i see many online on-fire debates about this matter.

The question comes here, do you prefer Procedural Programming or Object Oriented Programming in PHP and why?
__________________
http://twitter.com/danymoussa
xcoder is offline   Reply With Quote