Re: [PHP] Object Oriented Programming question

2010-03-12 Thread Andrew Brookins
On Tue, Jan 19, 2010 at 7:11 AM, Ben Stones b3n...@googlemail.com wrote: Hi, I've been learning about object oriented programming for the past few weeks and I've understood it pretty well, but I have one question. Usually with PHP scripts I make, all the functionality for a specific page is

Re: [PHP] Object Oriented Programming question

2010-03-12 Thread Ashley Sheridan
On Fri, 2010-03-12 at 06:49 -0800, Andrew Brookins wrote: On Tue, Jan 19, 2010 at 7:11 AM, Ben Stones b3n...@googlemail.com wrote: Hi, I've been learning about object oriented programming for the past few weeks and I've understood it pretty well, but I have one question. Usually with

Re: [PHP] Object Oriented Programming question

2010-03-12 Thread Rene Veerman
I also agree OOP is not a fad. Its a step up from procedural/including. And it's still evolving. While PHP is able to do polymorphism perfectly without OOP/classes, through require($plugin/className); $varFunctionName ($p1, $p2, etc);, My newsscraper works very well that way. But if you want

RE: [PHP] Object Oriented Programming question

2010-01-20 Thread Jay Blanchard
[snip] Another advantage of OOP that is difficult to provide via the procedural paradigm is polymorphism. Agreed. Though the advantages of polymorphism are questionable, depending on your viewpoint. [/snip] In a loosely typed language like PHP that advantages of polymorphism far outweigh any

RE: [PHP] Object Oriented Programming question

2010-01-20 Thread tedd
At 10:26 AM -0500 1/19/10, Bob McConnell wrote: Some problems will fit into it, some don't. I teach OOP thinking at the local college and haven't run into a problem that doesn't fit. For example, in my last class I had a woman who wanted to pick out a blue dress for her upcoming wedding

Re: [PHP] Object Oriented Programming question

2010-01-20 Thread Paul M Foster
On Wed, Jan 20, 2010 at 06:47:04AM -0600, Jay Blanchard wrote: [snip] Another advantage of OOP that is difficult to provide via the procedural paradigm is polymorphism. Agreed. Though the advantages of polymorphism are questionable, depending on your viewpoint. [/snip] In a loosely

RE: [PHP] Object Oriented Programming question

2010-01-20 Thread Jay Blanchard
[snip] My viewpoint may be jaundiced from having programmed in C++, but the polymorphism of PHP seems a little crippled by comparison. [/snip] I wholeheartedly agree, but I figured out how to work with it in PHP to my advantage and the advantage of my team. It'll get better... -- PHP General

Re: [PHP] Object Oriented Programming question

2010-01-20 Thread Robert Cummings
Jay Blanchard wrote: [snip] My viewpoint may be jaundiced from having programmed in C++, but the polymorphism of PHP seems a little crippled by comparison. [/snip] I wholeheartedly agree, but I figured out how to work with it in PHP to my advantage and the advantage of my team. It'll get

Re: [PHP] Object Oriented Programming question

2010-01-20 Thread Richard Quadling
2010/1/20 tedd tedd.sperl...@gmail.com: Also IMO, one can argue the advantages that OOP and Design Patterns bring to the table over procedural, but after all is said and done, if you know your stuff in procedural, OOP is not going to provide you with much that you don't already have. You also

Re: [PHP] Object Oriented Programming question

2010-01-20 Thread Kim Madsen
tedd wrote on 20/01/2010 16:11: At 10:26 AM -0500 1/19/10, Bob McConnell wrote: Some problems will fit into it, some don't. I teach OOP thinking at the local college and haven't run into a problem that doesn't fit. For example, in my last class I had a woman who wanted to pick out a blue

Re: [PHP] Object Oriented Programming question

2010-01-20 Thread Paul M Foster
On Wed, Jan 20, 2010 at 10:11:18AM -0500, tedd wrote: snip While I teach OOP, I don't write any OOP for clients. My charge is to do things quickly and OOP requires a considerable amount of analysis before creating a solution. In most cases, I don't have the time. Besides, I'm more of an

RE: [PHP] Object Oriented Programming question

2010-01-20 Thread Bob McConnell
From: tedd At 10:26 AM -0500 1/19/10, Bob McConnell wrote: Some problems will fit into it, some don't. I teach OOP thinking at the local college and haven't run into a problem that doesn't fit. For example, in my last class I had a woman who wanted to pick out a blue dress for her

Re: [PHP] Object Oriented Programming question

2010-01-20 Thread J Ravi Menon
Hi Bob, [Couldn't resist jumping into this topic :)] Even if you look at traditional unix (or similar) kernel internals, although they tend to use functional paradigms, they do have a OOP-like flavor. Example: Everything in a unix system is a 'file' (well not really with networking logic, but

RE: [PHP] Object Oriented Programming question

2010-01-20 Thread tedd
At 11:31 AM -0500 1/20/10, Bob McConnell wrote: From: tedd At 10:26 AM -0500 1/19/10, Bob McConnell wrote: Some problems will fit into it, some don't. I teach OOP thinking at the local college and haven't run into a problem that doesn't fit. For example, in my last class I had a woman

Re: [PHP] Object Oriented Programming question

2010-01-20 Thread tedd
At 11:18 AM -0500 1/20/10, Paul M Foster wrote: On Wed, Jan 20, 2010 at 10:11:18AM -0500, tedd wrote: snip While I teach OOP, I don't write any OOP for clients. My charge is to do things quickly and OOP requires a considerable amount of analysis before creating a solution. In most cases,

RE: [PHP] Object Oriented Programming question

2010-01-19 Thread Bob McConnell
From: Ben Stones I've been learning about object oriented programming for the past few weeks and I've understood it pretty well, but I have one question. Usually with PHP scripts I make, all the functionality for a specific page is in the actual PHP file, and I'd use PHP functions in a

Re: [PHP] Object Oriented Programming question

2010-01-19 Thread Ashley Sheridan
On Tue, 2010-01-19 at 12:30 -0500, Paul M Foster wrote: On Tue, Jan 19, 2010 at 03:11:56PM +, Ben Stones wrote: Hi, I've been learning about object oriented programming for the past few weeks and I've understood it pretty well, but I have one question. Usually with PHP scripts I

Re: [PHP] Object oriented programming

2004-11-16 Thread daniel
Hello my friends, how can I get a tutorial or book about Object Oriented Programming (OOP) in PHP, if is posible about PHP 5, I am beginning in use PEAR, and almost librarys are in OOP. Can you help me? Thanks :) PEAR is the best thing that happen to PHP even though its a CPAN for PHP :)

Re: [PHP] Object oriented programming

2004-11-16 Thread Matthew Sims
Hello my friends, how can I get a tutorial or book about Object Oriented Programming (OOP) in PHP, if is posible about PHP 5, I am beginning in use PEAR, and almost librarys are in OOP. Can you help me? Thanks :) procedural = ¿Acaso se olvidará la mujer de su bebé, y dejará de

Re: [PHP] Object oriented programming

2004-11-16 Thread Robby Russell
On Tue, 2004-11-16 at 15:39 -0800, Matthew Sims wrote: It's a new way of writing out programs that many new languages are taking in. OO programming is definitely not a new way of writing programs. SIMULA I (1962-65) and Simula 67 (1967) are the two first object-oriented languages. Simula 67

Re: [PHP] Object Oriented Programming in PHP

2004-06-24 Thread Chris Shiflett
--- Eric Marden [EMAIL PROTECTED] wrote: I'm interested in getting up to speed on OOP in PHP can anyone recommend some good titles for me to pick up? George Schlossnagle gave a good talk on this last night at NYPHP. His slides aren't up yet, but they should appear here soon:

Re: [PHP] Object Oriented Programming in PHP

2004-06-24 Thread Eric Marden
Awesome. I was looking at the Advanced PHP Programming book on amazon, and so far it looked to be about the only title that covered that. Thanks for the links to his site / talks, as i'm sure there's some great info to be gleaned from them too. I will take a look at picking up his book shortly.

RE: [PHP] Object oriented Programming

2003-02-05 Thread Leonard Burton
Creating functions is a real easy part of programming. Classes are a differect story (or at least at first). Anyway, If I were you, I would get Professional PHP4 by Wrox and read the OOP section. I would first start writting functions. Think if it like this, if you use exact code twice (you