If I want to read from an object with a read() method, I don't want to have to care whether it's reading from a file or an array or a resource or a device or its navel; I just $object->read(). Let the object figure out how read() is supposed to work. And I'm ralfed if I'm going to rewrite read() every time I come up with a new source to read from.
i believe the OOP approach is to help programmer towards manageble code. but it seems that it fails to do so, IM"H"O.
IM"H"O, OOP is just "grouping functions" and assign it into object.
i believe the most important part about OOP is object modelling.
if one have a lousy modelling technique, then the code also lousy.
but sometime/or mosttime, the event, process or whatsoever are hard to model.
we can make class very tiny like atom or large like computer.
then if u have hundred of major classes and you call it manageble code, then i have nothing to say.
if you are fully into OOP mode, then there should be a class that you only initialize it one time. then there is tiny classes that probably u call it nearly hundred over times.
if that happened, why don't u just turn the tiny class into function...?
IMHumbleO, OOP is just for people who are disinterest in procedural grouping.