Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Do you write Object Oriented PHP scripts?
Old 02-17-2009, 02:00 AM Do you write Object Oriented PHP scripts?
TWD
TWD's Avatar
King Spam Talker

Posts: 1,112
Trades: 0
Sounds like its a good idea but most of the tutorials and books I've read dont use that approach.

Was curious if professionals ALWAYS take that approach.
TWD is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-17-2009, 02:53 AM Re: Do you write Object Oriented PHP scripts?
NullPointer's Avatar
Will Code for Food

Posts: 2,784
Name: Matt
Location: Irvine, CA
Trades: 0
I would say that it depends on the scale of your project. For a project that involves many components or modules I would use OOP because it simplifies the process of working with those components. It also makes your code easier to update and modify in the future.

For a simple task, however, it might be faster to just write a few functions or just plain code. The reason, I think, that so many code examples don't use OOP is because they descripe simple tasks, if you combined many of those tasks into a large scale program you would probably find that your code is a mess and hard to deal with.

Deciding on your paradigm is a question of which is best for your situation, not which is best in general.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is offline
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Reply     « Reply to Do you write Object Oriented PHP scripts?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.43659 seconds with 12 queries