Current location: Hot Scripts Forums » Programming Languages » PHP » Object Oriented Programming


Object Oriented Programming

Reply
  #21 (permalink)  
Old 06-24-03, 05:22 AM
phpkid phpkid is offline
Hot Moderator ;)
 
Join Date: Jun 2003
Location: India
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
I guess it's high time you look at this article!

http://www.phpbuilder.com/columns/barnum20030509.php3

Amailer,

your first quote:
Quote:
OF COURSE IT IS!
and also it makes your work much better, and faster :0, even thought i don't use OO yet, i am learning how to :0
and then
Quote:
If your debugging a code, trust me OOP makes it much easier to find your problems
If you don't know OOP, How am I supposed to TRUST you that debugging is easier in OOP. Please talk SENSE.

Regards,
JD
__________________
http://www.phpkid.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #22 (permalink)  
Old 06-24-03, 07:09 AM
Pineapple Pineapple is offline
Newbie Coder
 
Join Date: Jun 2003
Location: Phoenix, AZ
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
I use OOP extensively and I can tell you that he is definitely right.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #23 (permalink)  
Old 06-24-03, 08:46 AM
Chris Boulton Chris Boulton is offline
Wannabe Coder
 
Join Date: Jun 2003
Location: Sydney, Australia
Posts: 208
Thanks: 0
Thanked 0 Times in 0 Posts
I feel that using my own coding style makes alot more sense to me... I know exactly how i want it, where everything is, and how i want it to look.

I use a basic coding method with indents, comments, good function use..etc.. basically a little modified version of PAIR.

I havent really tried anything in OOP but i am having a look through that other link that phpkid supplied... i am really interested in some bench marking results.
__________________
Chris Boulton
SurfiOnline!
MyBulletinBoard
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #24 (permalink)  
Old 06-25-03, 03:21 AM
Stefan's Avatar
Stefan Stefan is offline
Junior Code Guru
 
Join Date: Jun 2003
Location: Utrecht, The Netherlands
Posts: 599
Thanks: 0
Thanked 0 Times in 0 Posts
well, your own coding style of course makes the most sense. and it probably works well when it's just you working on a project. the moment you start working together with other programmers though, things will change a bit. you'll need to find a compatible style.

because of that, I want to at least know how to use OOP. I have the basic understanding now, but it's hard to learn about something when you fail to see the use of it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #25 (permalink)  
Old 06-25-03, 03:42 AM
Pineapple Pineapple is offline
Newbie Coder
 
Join Date: Jun 2003
Location: Phoenix, AZ
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally posted by Stefan
I have the basic understanding now, but it's hard to learn about something when you fail to see the use of it.
It's hard to see the use of something when you fail to take the time to learn about it...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #26 (permalink)  
Old 06-26-03, 03:26 AM
Stefan's Avatar
Stefan Stefan is offline
Junior Code Guru
 
Join Date: Jun 2003
Location: Utrecht, The Netherlands
Posts: 599
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally posted by Pineapple
It's hard to see the use of something when you fail to take the time to learn about it...
nice twist indeed.

i guess i should take some more time to look into it eh?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #27 (permalink)  
Old 12-30-03, 02:22 AM
wounded_elf wounded_elf is offline
New Member
 
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
I feel the same way Stefan does. Infact I happened on this post because I was looking for an intellectual discussion on OOP. I have used OOP, heard the benefits of encapsulation 1000 times but still do not see any added benefits to writing strict OOP code. Even after reading all your posts
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #28 (permalink)  
Old 12-30-03, 05:04 AM
Stefan's Avatar
Stefan Stefan is offline
Junior Code Guru
 
Join Date: Jun 2003
Location: Utrecht, The Netherlands
Posts: 599
Thanks: 0
Thanked 0 Times in 0 Posts
In the meantime I've learned and worked with OO a bit more and I've come to see some of the benefits a bit better. The main benefit though is found in when you have multiple sites hosted on a single server. That is when you can create an application framework that has a central place in the include_path, much like PEAR.

PHP5 is supposed to bring even more support for OO ... so we'll see what happens then. I haven't dived into PHP5 yet...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #29 (permalink)  
Old 12-30-03, 08:18 AM
michaeln michaeln is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
I know this thread is over now but I wanted to post this for the people that doesn't fully understand OOP. For the longest time I didn't see the use in it either. Like many of the arguments in this thread you can reuse functions etc. So what is the big deal?

I highly suggest the book, "The Object-Oriented Thought Process" by Sams Publishing.
http://www.amazon.com/exec/obidos/ASIN/0672318539

No I am not pushing the book because I get kickbacks or anything. I just think it is a good book, and it really helped me to understand the usefulness of OOP.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #30 (permalink)  
Old 12-30-03, 12:22 PM
Trevor's Avatar
Trevor Trevor is offline
Wannabe Coder
 
Join Date: Jun 2003
Location: Denver, Colorado
Posts: 120
Thanks: 0
Thanked 0 Times in 0 Posts
I'm just diving into OO myself. I'm still trying to wrap my head around the in's and out's of why I should use it but of the few opportunities I have had to use class functions, I am finding myself very impressed. I use a mail, upload, and PEAR's DB classes on a regular basis.

My biggest block has been scope. That is, how do I dump variables and objects, such as my PEAR $db object into another class? I'm learning how, but... I have a long way to go.

I agree with what has been said here, the best way to learn is to dive right in and code-for-it.
__________________
The Universe Our God, Nature Our Temple, Love And Duty Our Religion, Knowledge Our Happiness And Consolation, Death The Dissolution Of The Ego, And The Return To Eternity.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Gallery script, can someone check the programming? Pvasoldier PHP 10 09-25-03 06:43 PM
ASP Application Object hucklorenzo ASP 2 07-22-03 05:21 PM
Object resize aslythall JavaScript 1 07-02-03 03:38 PM
Dynamic site programming superjobs General Advertisements 3 06-06-03 10:30 AM


All times are GMT -5. The time now is 01:12 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.