Re: OOP: class variables question

From: Date: Sat, 11 Nov 2000 22:05:41 +0000
Subject: Re: OOP: class variables question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-24807@lists.php.net to get a copy of this message
Chris Carbaugh wrote: > ~~~~~~~~ > > I use alot of open source code, and release some of mine. Everybody > doesn't adhere to good programming practice. Especially those like me, > who have no real coding experience prior to PHP. > > I quess what i'm getting at is if there is a standard I (we all) should > follow when using OOP? Any of the PHP books cover this? (I've never > read any of them) Any other 'general programming practice' books out > there relevant to this subject? > > Thanks, > Chris What is thought of as a 'guide' to general OO methodology, by many, is Bertrand Meyer's book, 'Object-Oriented Software Construction', second edition, PTR. It's pricey. This is a very good book on what OO should be. But we're talking about full blown OO languages. PHP ain't one of them. Damian Conway's book, 'Object Oriented Perl', is a fantastic book. Don't know what you might could glean out of it for PHP. But Perl would be a closer comparison than anything else - maybe. As far as private variables. I believe there was a trick in Perl using 'closures'. Couldn't do that in PHP3. I just yesterday got PHP4 installed, so haven't tried it yet. Anywone else? Not OO at all, but Steve McConnell's book, 'Code Complete' should be near the top of the list. Mike D.

« previous php.general (#24807) next »