Re: [PHP] Re: classes v. functions

2003-07-20 Thread Robert Cummings
On Sun, 2003-07-20 at 02:28, Andu wrote: > > One shouldn't apply industrial theories to just everything. > Object Oriented Design is not an industrial theory. It's a tried and true practice with over a decade of computer science and practical use behind it. Procedural programming is a subset of

Re: [PHP] Re: classes v. functions

2003-07-19 Thread Andu
--On Sunday, July 20, 2003 07:53:20 +0200 Simon Fredriksson <[EMAIL PROTECTED]> wrote: I've been working like that for about two years and just recently I got enlighted in the use of classes. The main reason I started this thread is that since I'm just beginning with php I thought I might as w

Re: [PHP] Re: classes v. functions

2003-07-19 Thread Curt Zirzow
* Thus wrote Simon Fredriksson ([EMAIL PROTECTED]): > [...] > just got confused. Then, suddenly I got some class for something, > checked out the code and my brain just snapped. "aaah, THAT's how it's > done!". It wasn't well documented, just nicely structured and easy to > read and understand.

Re: [PHP] Re: classes v. functions

2003-07-19 Thread Simon Fredriksson
I've been working like that for about two years and just recently I got enlighted in the use of classes. I've built a few sites and after a while on each of them I run into a problem. Say I wanna add a meta-refresh tag or send a cookie; with my earlier code, that brought out hell... more or les

Re: [PHP] Re: classes v. functions

2003-07-19 Thread olinux
I'm quite new to OOP myself, but these two articles helped my understanding a lot See the sidebar - Classes and Object Oriented Programming http://webreference.com/perl/xhoo/php1/5.html Taking PHP the OO way http://phpmag.net/itr/online_artikel/psecom,id,284,nodeid,114.html olinux --- Sam Bau

Re: [PHP] Re: classes v. functions

2003-07-19 Thread Sam Baum
Hi there, am Saturday 19 July 2003 16:30 schrieb Curt Zirzow: > Sam Baum <[EMAIL PROTECTED]> wrote: >> Hi, >> >> am Friday 18 July 2003 23:08 schrieb 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 figuri

Re: [PHP] Re: classes v. functions

2003-07-19 Thread Curt Zirzow
Sam Baum <[EMAIL PROTECTED]> wrote: > Hi, > > am Friday 18 July 2003 23:08 schrieb 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

Re: [PHP] Re: classes v. functions

2003-07-19 Thread Ryan A
Hi, I myself never really create classes to use in my projects, if I ever use classes its only because they come from someone else (eg phpclasses.org), I find using the non OO approach much easier to understand. Just my 2 cents. Cheers, -Ryan - Original Message - From: "Sam Baum" <[EMAIL