|
Posted by J on 02/14/06 05:27
I have a handle on what a class is, what polymorphism is good for,
overloading, even a few design patterns in my head. But to relate OO to php
is kinda hard to wrap my head around.. So I went looking for examples.
"Here's how to do OO php" the tutorial says. Then it rambles on for 3 pages
about dog extending animal and Parka extending outerwear - AND ABRUPTLY
ENDS. This doesn't help the php programmer with how to join all the
'objects' in his web page. Is the page an object? what about the php file?
etc etc. Should I use the composite pattern to successively add content to
a page of type content? Or maybe a behavioral pattern like decorator and
layer all the content in classes "KNOWING" other classes... None of this
seems to be explained. The good news is, after searching about 10
combinations of gterms in google, I found a REALLY nice list of OO
tutorials - german site, but english tutorials (mostly). Especially the
first on on the list...
http://www.dynamicwebpages.de/tutorial/9/
I'd like a start to finish example of how to build a php database drivin app
consistant with best practices including complete uml diagram, etc. Maybe
when I sort all this out, I'll write a draft...and everyone can rip it (and
me) to pieces until I get it right. ;)
Thanks for listening to me vent.
-J
[Back to original message]
|