Object Oriented Programming

06-24-03, 05:22 AM
|
|
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
|

06-24-03, 07:09 AM
|
|
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.
|

06-24-03, 08:46 AM
|
|
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.
|

06-25-03, 03:21 AM
|
 |
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.
|

06-25-03, 03:42 AM
|
|
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...
|

06-26-03, 03:26 AM
|
 |
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?
|

12-30-03, 02:22 AM
|
|
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
|

12-30-03, 05:04 AM
|
 |
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...
|

12-30-03, 08:18 AM
|
|
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.
|

12-30-03, 12:22 PM
|
 |
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.
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|