Micky Hulse wrote:
Hi,
I am slowly learning how to use classes properly... quick question:
# Create the object:
$doSplash = new RandomSplash(); // Create the object.
Shouldn't I be able to call that object like below, throughout my page:
...HTML...
?php $doSplash-randomize('css'); ?
Pablo,
This is a very complex discussion... But generalizing, a LOT, OO is
more appropriated for big systems due to its extensibility and easy
maintenance, while procedural approach works best for small
applications that don't require to much updates and aren't too complex.
Here is a
Original Message
Subject: Re: [PHP-DB] OOP vs Functions and includes
From: Jonel Rienton [EMAIL PROTECTED]
Date: Tue, November 16, 2004 7:04 pm
To: [EMAIL PROTECTED]
Hi again Pablo,
not sure how the inner workings of PHP are as far as instantiating new
classes. other languages
Chris wrote:
I have an abstract class with quite a few 'children'. Essentially I want
to be able to interchange calls between children (Take a script, written
with ClassA and redefine the variable as ClassB etc.)
Though there is a large subset of methods all of these children declare,
there
Justin Patrin wrote:
Chris wrote:
I have an abstract class with quite a few 'children'. Essentially I
want to be able to interchange calls between children (Take a script,
written with ClassA and redefine the variable as ClassB etc.)
Though there is a large subset of methods all of these
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 :)
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
[EMAIL PROTECTED] wrote:
i want to build a site in fully OO style but that will
significantly slow down execution time
Do you have any documentation on this? - I'm getting quite used to read
and hear the very opposite.
Previously programmers even argued that asp was faster than php because
I still don't get what the big fuss of OO programming is about
I do agree that it is stylistic hence helps someone else who
hasn't written your code to follow up on what you are doing...
But so far the programs I have been writing in OO supported
languages have been written and scripted on an as
[snip]
I still don't get what the big fuss of OO programming is about ...How many
of us have done so? Could some one please point out another feasible
advantage of OO programming a part from the fact that I would make someone
else's work easier by using this style of programming...
[/snip]
It's
Spike Mkandawire [mailto:[EMAIL PROTECTED]]
Sent: June 27, 2002 8:10 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: PHP and OOP
I still don't get what the big fuss of OO programming is about
I do agree that it is stylistic hence helps someone else who
hasn't written your code to follow up on what you
On Thursday, June 27, 2002, at 08:10 AM, Kondwani Spike Mkandawire
wrote:
I still don't get what the big fuss of OO programming is about
I do agree that it is stylistic hence helps someone else who
hasn't written your code to follow up on what you are doing...
But so far the programs I
I've tested thecode and there is what i've got
Proceduraltook 1.24408602715 seconds
OOtook 1.24240803719 seconds
Here is the code. Test it by yourself
?phpfunction getmicrotime(){list($usec, $sec) = explode(
,microtime());return ((float)$usec + (float)$sec);}function
Dufour [EMAIL PROTECTED]
To: SP [EMAIL PROTECTED]; Kondwani Spike Mkandawire
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, June 27, 2002 11:34 AM
Subject: Re: [PHP] Re: PHP and OOP
I've tested thecode and there is what i've got
Proceduraltook 1.24408602715 seconds
OOtook 1.24240803719
]]
Sent: June 27, 2002 1:34 PM
To: SP; Kondwani Spike Mkandawire; [EMAIL PROTECTED]
Subject: Re: [PHP] Re: PHP and OOP
I've tested thecode and there is what i've got
Proceduraltook 1.24408602715 seconds
OOtook 1.24240803719 seconds
Here is the code. Test it by yourself
?phpfunction getmicrotime
: RE: [PHP] Re: PHP and OOP
Never tested it so I tried it out for the fun of it. I didn't use yours
but
I used the other guy's code on separate pages and did it ten times. I
guess
I was wrong, I got around 2% difference. Definitely not the 20%
difference
that guy got in his. He was probably using
, 2002 11:50 PM
To: Kondwani Spike Mkandawire; [EMAIL PROTECTED]
Subject: RE: [PHP] Re: PHP and OOP
OO is slower then procedural. You can test that out yourself or look at
this article where the guy did a very basic test. Maybe they will fix the
speed problem by the time php5 comes around.
http
greatly... its all
situational.
-Original Message-
From: Demitrious S. Kelly [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 27, 2002 1:04 PM
To: 'SP'; 'Remy Dufour'; 'Kondwani Spike Mkandawire';
[EMAIL PROTECTED]
Subject: RE: [PHP] Re: PHP and OOP
Comparison (do not compare the speeds
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Re: PHP and OOP
I haven't got around to reading all the other replies yet, so this reply
might already be covered...
So I went to that url - and okay, according to the person writing that
page,
there's a ~3sec increase in the time it takes to execute
19 matches
Mail list logo