note
jeroenes
Have you read "Code Complete" by McConnell? Read all
about abstraction layers and independent components.
<p>
You
have already had some suggestions about switching from
database to flat file etc.
Separation also holds for your user-interaction interface, whatever it is.
<p>
E.g., <i>login.pl</i> is clearly an interface thingy, so make it
independent from your User-objects. That means: <i>login.pl</i>
calls the user-class, and the user-class calls the database-interaction
class, where login.pl holds the interface (web/CLI/GUI), user
holds your (temporal) user data and the database class is left
with calling whatever the database is.
<p>
You just apply this kind of reasoning to every relation
you encounter while making up the program, and I think you
will
get around to some nice stuff pretty soon.
<p>
I'm not a real experienced OO'er or whatever, so listen
to everybody else here for more advice. Browse [tilly]'s nodes
for example....
<p>Cheers,<p>Jeroen<br>
<i>"We are not alone"(FZ)</i>
115130
115130