[snip]
> A CLASS after all is just a collection of functions with a
> data model. But ... there is modular and then there is OO imho.
[snip]

A class is more than just a bunch of functions that have been placed
together. If you want to do that, then you might as well just throw them all
into the same include file and that's it. There's no added benefit in
wrapping a class around them.

Agreed, a class can be used to simulate the C-style struct, or to collect a
bunch of functions, but the real power of classes is when you start to model
the "real world" objects (ie, methods and properties, not just functions and
variables.)

I'm not saying to go all OO (or all procedule, I use both...), just that
when used correctly, they can be really helpful.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to