p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

  Return to Index  

beginning_php thread: Re: Objects - any real benefit?

Message #1 by "Robert Laframboise" <robert.laframboise@r...> on Mon, 31 Dec 2001 15:52:38 -0500
I've only got a little bit of java under my belt, but the way I see it, in

the research I did on php, mostly at their site, and from what I read they

are heading for oop status. So the way I figure it is that I'll have another

language under my belt.

Now! Can anyone tell me what  the hell is going on with the userview example

from chapter 12? I've tried everything, checked everything as well as

errata. View Record link won't work. The download code won't even work.

I'm losing it!!!



----- Original Message -----

From: "Peter Simard" <peter@p...>

To: "beginning php" <beginning_php@p...>

Sent: Thursday, December 27, 2001 2:19 AM

Subject: [beginning_php] Objects - any real benefit?

> ---

> Need a present for your favorite programmer?

> E-Documents from Amazon.com at http://p2p.wrox.com/edocs.asp

> ---

> Ok, I've been fiddling with a number of classes, utility classes mostly,

> connection etc.


> It's apparent that the benefit reaped from using classes/objects is

> modular and re-usable code, as with any OOP.  But as the nature of PHP

> script execution is temporary, over and above the utility classes and

> sessions, why bother?


> I've just spent several months learning JAVA where the OOP paradigm is

> paramount, in PHP OOP just seems like a nice feature.


> I'd love to hear people's thoughts on this.


> Regards and Happy New Year,


> Pete

> Remember 911!!!



Message #2 by "Peter Simard" <peter@p...> on Wed, 2 Jan 2002 20:18:47
Well, after one day of abstracting a number of site concepts out into 

generic reusable classes, the code saved per page is enough for me to 

fully embrace whatever OOP paradigm PHP presently has and any they intend 

to adopt in the future.

Message #3 by "Kurt V. Daesch Jr" <grashpr@h...> on Sat, 5 Jan 2002 17:44:54 -0600
Feelings are mutual on this subject matter. I think it is more practical to

use functions with variables. Than to use classes

  Return to Index