Re: [PHP] classes v. functions

2003-07-24 Thread Joel Rees
> Hi, > > am Wednesday 23 July 2003 11:48 schrieb Joel Rees: > > > (You know that $accesses->count and $accesses->resetCounter() are at > > least declared in the same class declaration. $accesses_count and > > accesses_resetCounter() could be declared in entirely unrelated include > > files for e

Re[2]: [PHP] classes v. functions

2003-07-23 Thread Tom Rogers
Hi, MM> troll. :) MM> Execution speed is most definitely /not/ all that matters, though it MM> really depends on the situation. It is often cheaper to throw MM> CPU/storage/RAM at a problem than it is to spend more developer time, MM> especially when one of the considerations is future maintenanc

Re: [PHP] classes v. functions

2003-07-23 Thread Mike Migurski
>> Execution speed isn't all that matters. In fact, speed is not the point >> at all. > >Then you must be an PHPNuke or Typo3-programmer, beeing lucky to get at >least 1 request per second ;). Don't take it hard, but If you had ever >been in computer-science [school|college|...] you would know tha

Re: [PHP] classes v. functions

2003-07-23 Thread Sam Baum
Hi, am Wednesday 23 July 2003 11:48 schrieb Joel Rees: > (You know that $accesses->count and $accesses->resetCounter() are at > least declared in the same class declaration. $accesses_count and > accesses_resetCounter() could be declared in entirely unrelated include > files for entirely differen

Re: [PHP] classes v. functions

2003-07-23 Thread Joel Rees
> Say I have a database class with all kinds of functions for connection, > data manipulation, errors, etc: > > $db = new db_sql; > $db->connect(); > $db->do_this(); > $db->do_that(); > > How would that be different from an include file with a bunch of functions > doing the same thing? As far

Re: [PHP] classes v. functions

2003-07-19 Thread Justin French
Whether it's the right move or not, I've put off my learning of PHP classes and OOP methods until PHP5.x, so I guess the time in near :) However, *especially* if you're the only programmer on a project, you can take the ideas & benefits behind OOP (for me, having clear, clean code that can be r

Re: [PHP] classes v. functions

2003-07-19 Thread Andu
Thanks to all for your input. Regards, Andu Novac -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] classes v. functions

2003-07-19 Thread Tom Rogers
Hi, Saturday, July 19, 2003, 7:08:55 AM, you wrote: A> This may show my ignorance or my refusal to take for granted something I A> don't fully understand but I have a hard time figuring out the advantage of A> using classes as opposed to just functions. I am certainly new to php and A> at first

Re: [PHP] classes v. functions

2003-07-18 Thread Curt Zirzow
Andu <[EMAIL PROTECTED]> wrote: > > > --On Friday, July 18, 2003 14:28:02 -0700 Chris Shiflett <[EMAIL PROTECTED]> > wrote: > > >--- Andu <[EMAIL PROTECTED]> wrote: > >>This may show my ignorance or my refusal to take for granted > >>something I don't fully understand but I have a hard time > >

Re: [PHP] classes v. functions

2003-07-18 Thread Robert Cummings
On Fri, 2003-07-18 at 18:19, Andu wrote: > > Say I have a database class with all kinds of functions for connection, > data manipulation, errors, etc: > > $db = new db_sql; > $db->connect(); > $db->do_this(); > $db->do_that(); > > How would that be different from an include file with a bunch of

Re: [PHP] classes v. functions

2003-07-18 Thread Andu
--On Friday, July 18, 2003 14:28:02 -0700 Chris Shiflett <[EMAIL PROTECTED]> wrote: --- Andu <[EMAIL PROTECTED]> wrote: This may show my ignorance or my refusal to take for granted something I don't fully understand but I have a hard time figuring out the advantage of using classes as opposed t

Re: [PHP] classes v. functions

2003-07-18 Thread Brad Bonkoski
Chris Shiflett wrote: > --- Andu <[EMAIL PROTECTED]> wrote: > > This may show my ignorance or my refusal to take for granted > > something I don't fully understand but I have a hard time > > figuring out the advantage of using classes as opposed to just > > functions. > > They are entirely diffe

Re: [PHP] classes v. functions

2003-07-18 Thread Chris Shiflett
--- Andu <[EMAIL PROTECTED]> wrote: > This may show my ignorance or my refusal to take for granted > something I don't fully understand but I have a hard time > figuring out the advantage of using classes as opposed to just > functions. They are entirely different. While OO fans will find my over-

[PHP] classes v. functions

2003-07-18 Thread Andu
This may show my ignorance or my refusal to take for granted something I don't fully understand but I have a hard time figuring out the advantage of using classes as opposed to just functions. I am certainly new to php and at first sight classes seemed to cut a lot of corners but so do functions