Re: [PHP] Re: classes v. functions

2003-07-20 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. I

Re: [PHP] Re: classes v. functions

2003-07-20 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

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

[PHP] Re: classes v. functions

2003-07-19 Thread Sam Baum
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 am certainly new to php and at first sight classes

[PHP] Re: classes v. functions

2003-07-19 Thread Jean-Christian IMbeault
I am sure someone will call this heresy, but if you really want OO don't do it in PHP. If you are new to OO and start with PHP you will do yourself a grat disfavour. OO programming in PHP is still not ready. If you try and program in OO in PHP you have to learn all of it's shortcomings

Re: [PHP] Re: classes v. functions

2003-07-19 Thread Ryan A
PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, July 19, 2003 11:59 AM Subject: [PHP] Re: classes v. functions 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

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 am

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 figuring out the

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

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