[PHP] dreading OOP
I hope this is not too far OT, however, you are the best resource I have for PHP and if anyone would know, it would be you guys. I have been writing scripts off and on for the past year and have an application written in PHP for a business' internal use. I have used snippets of Object oriented code from other people here and there to get by and I have read information on OOP in a couple of different places. However, my mind apparently works different and I keep trying to relate the OOP structure to what I already know which equates an object to a function. I am resolving to purchase a book dedicated to instruction in the inns and outs of OOP. Specifically at it relates to PHP would be great but my emphasis is towards something that teaches someone that is stubborn in his reliance on previously learned methods. I hope this makes sense and I'm not alone on this. :) Any suggestions would be greatly appreciated! Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] dreading OOP
-Original Message- However, my mind apparently works different and I keep trying to relate the OOP structure to what I already know which equates an object to a function. I am resolving to purchase a book dedicated to instruction in the inns and outs of OOP. Specifically at it relates to PHP would be great but my emphasis is towards something that teaches someone that is stubborn in his reliance on previously learned methods. I hope this makes sense and I'm not alone on this. :) My only suggestion is that you re-consider why you want to take up OOP. If a procedural approach works for you, go with it. It's not like we're building air traffic control systems here ;) Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] dreading OOP
Larry Brown said: equates an object to a function You'd be better off trying to equate an object to a data type. -Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] dreading OOP
equates an object to a function You'd be better off trying to equate an object to a data type. Why is that? Please explain? I do not mean to sound trite. I do not know and am very curious to hear more. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] dreading OOP
Chris Boget said: equates an object to a function You'd be better off trying to equate an object to a data type. Why is that? Please explain? I do not mean to sound trite. I do not know and am very curious to hear more. Consider two approaches to extending your procedural programming knowledge to OOP. Think of an object as a user-defined data type (that also includes functions). Think of an object as a bunch of functions (and some variables). The second is awkward and doesn't capture the purpose of OO. The real beauty of OO is that it is data centric and it allows the member functions of an object to be easily testable black-boxes. Good luck! -Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] dreading OOP
The only reason I feel the need to expand my understanding is that I have to learn other concepts to produce my client's solutions. For instance I am now being asked to use SOAP to communicate with a vendor of his. Now I am reading about SOAP and frequently the descriptions rely on the reader's understanding of OOP. I can individually scrutinize a description and break it down to its elements. Then I can picture what is being said, but without having used those methods in my code, it is frustrating reading. I don't know that SOAP is in and of itself OOP but people that write about it use OOP based consepts to exlain what is happening. And this is one example. Don't let me go into the Java and Javascript world! Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 10:40 AM To: PHP List Subject: RE: [PHP] dreading OOP -Original Message- However, my mind apparently works different and I keep trying to relate the OOP structure to what I already know which equates an object to a function. I am resolving to purchase a book dedicated to instruction in the inns and outs of OOP. Specifically at it relates to PHP would be great but my emphasis is towards something that teaches someone that is stubborn in his reliance on previously learned methods. I hope this makes sense and I'm not alone on this. :) My only suggestion is that you re-consider why you want to take up OOP. If a procedural approach works for you, go with it. It's not like we're building air traffic control systems here ;) Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re:[PHP] dreading OOP
Larry == Larry Brown [EMAIL PROTECTED] writes: Larry places. However, my mind apparently works different and I Larry keep trying to relate the OOP structure to what I already Larry know which equates an object to a function. I am resolving This happens a lot with me too :) Larry to purchase a book dedicated to instruction in the inns and Larry outs of OOP. Specifically at it relates to PHP would be Larry great but my emphasis is towards something that teaches Larry someone that is stubborn in his reliance on previously Larry learned methods. I hope this makes sense and I'm not alone Larry on this. :) Any suggestions would be greatly appreciated! i am having a hard time with OOP too. i did buy a book Object Oriented Analysis and Design Andrew Haigh. Well, it doesn't have PHP but it's otherwise very lucid and clear. It also covers UML. Haven't read much of it till now but i think it might help you. Learning to think in terms of object is really diffucult imho, for someone who is still stuck in the older procedural paradigm like us. It'll take time. Wishing us all OO enlightenment :) regards sukrit -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] dreading OOP
The easiest way for me to explain and understand OOP was to think of it this way. You have an object and in that object contains functions that only pertain to that one object. See diagram below. Object1 | |_ function1 | |_ function2 . . etc Object2 | |_ function1 | |_ function2 . . etc Note: Inside an object you can have functions that have the same name as other functions inside another object. This makes life really easy if you have to share code with someone because if you are totally procedural/functions you might have some functions with the same name and then your code won't work. However, if you place your functions inside an object you can avoid this problem all together.. kind of nice isn't it? :) Anyway, that's how I explain OOP in a nutshell to people that don't understand. Just don't forget there are a TON of other things about OOP but once you get the basic idea of how it works down (like this) then the rest is pretty easy to pick up and understand. Hope this helps! - Original Message - From: Larry Brown [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Tuesday, January 21, 2003 11:31 AM Subject: RE: [PHP] dreading OOP The only reason I feel the need to expand my understanding is that I have to learn other concepts to produce my client's solutions. For instance I am now being asked to use SOAP to communicate with a vendor of his. Now I am reading about SOAP and frequently the descriptions rely on the reader's understanding of OOP. I can individually scrutinize a description and break it down to its elements. Then I can picture what is being said, but without having used those methods in my code, it is frustrating reading. I don't know that SOAP is in and of itself OOP but people that write about it use OOP based consepts to exlain what is happening. And this is one example. Don't let me go into the Java and Javascript world! Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 10:40 AM To: PHP List Subject: RE: [PHP] dreading OOP -Original Message- However, my mind apparently works different and I keep trying to relate the OOP structure to what I already know which equates an object to a function. I am resolving to purchase a book dedicated to instruction in the inns and outs of OOP. Specifically at it relates to PHP would be great but my emphasis is towards something that teaches someone that is stubborn in his reliance on previously learned methods. I hope this makes sense and I'm not alone on this. :) My only suggestion is that you re-consider why you want to take up OOP. If a procedural approach works for you, go with it. It's not like we're building air traffic control systems here ;) Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re:[PHP] dreading OOP
Thank you, I'll check this book out. Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -Original Message- From: Sukrit [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 12:39 PM To: [EMAIL PROTECTED] Subject: [PHP] Re:[PHP] dreading OOP Larry == Larry Brown [EMAIL PROTECTED] writes: Larry places. However, my mind apparently works different and I Larry keep trying to relate the OOP structure to what I already Larry know which equates an object to a function. I am resolving This happens a lot with me too :) Larry to purchase a book dedicated to instruction in the inns and Larry outs of OOP. Specifically at it relates to PHP would be Larry great but my emphasis is towards something that teaches Larry someone that is stubborn in his reliance on previously Larry learned methods. I hope this makes sense and I'm not alone Larry on this. :) Any suggestions would be greatly appreciated! i am having a hard time with OOP too. i did buy a book Object Oriented Analysis and Design Andrew Haigh. Well, it doesn't have PHP but it's otherwise very lucid and clear. It also covers UML. Haven't read much of it till now but i think it might help you. Learning to think in terms of object is really diffucult imho, for someone who is still stuck in the older procedural paradigm like us. It'll take time. Wishing us all OO enlightenment :) regards sukrit -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] dreading OOP
On Tue, 21 Jan 2003 09:47:28 -0600, Chris Boget wrote: equates an object to a function You'd be better off trying to equate an object to a data type. Why is that? Please explain? my 2 cents are as follows. Objects have functions that return data types as many objects contain data. and the functions just tell the object how to manipulate and display or give some of the data back. I hope that helps. OOP kinda threw me for a loop when I first started wrapping my mind around it. I do not mean to sound trite. I do not know and am very curious to hear more. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] dreading OOP
The most helpful intro to OOP for me is the sidebar here: http://webreference.com/perl/xhoo/php1/5.html --- Jay Paulson [EMAIL PROTECTED] wrote: The easiest way for me to explain and understand OOP was to think of it this way. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php