View Single Post
  #2  
Old 08-28-2006, 02:00 PM
seoexpert seoexpert is offline
OSP Starters
 
Join Date: Jul 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
seoexpert is on a distinguished road
Default

Quote:
Originally Posted by cowell
What are the advantages of using objects in PHP (OOP)?

I can see how objects can help you re-use code in some ways


A database object can help with functions that you will have to re-use, but why is it better to use objects in just a regular site where you'll have a login system and some blog/commenting stuff. You will have to change many things in the code if you were to reuse it anyway, so what's the advantage?
True, but having a generic solution allows for greater reusability. And you want reusability.

What kind of things in the code would you -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  Webmaster Forums - View Single Post - Advantages of objects?
View Single Post
  #2  
Old 08-28-2006, 02:00 PM
seoexpert seoexpert is offline
OSP Starters
 
Join Date: Jul 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
seoexpert is on a distinguished road
Default

Quote:
Originally Posted by cowell
What are the advantages of using objects in PHP (OOP)?

I can see how objects can help you re-use code in some ways


A database object can help with functions that you will have to re-use, but why is it better to use objects in just a regular site where you'll have a login system and some blog/commenting stuff. You will have to change many things in the code if you were to reuse it anyway, so what's the advantage?
True, but having a generic solution allows for greater reusability. And you want reusability.

What kind of things in the code would you -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote