On Mon, 2004-10-04 at 21:00, Graeme McLaren wrote:
> Hey all .......... I'm thinkin about writing a web application using perl 
> and object oriented techniques.
> 
Nice try, a good point learning OOP in any language. Design issues are
not so easy to counsel.

> I want to start off small ....... lets say I want to put together a company 
> intranet and the part I want to implement first is staff profiles.  Each 
> profile would contain their email address, name, username, picture, 
> position, favourite quote etc.
I would recommend to store all this information in a hash, that will be 
the internal data structure if your class. 

> I'm thinking of implementing a profile class and a profiles class.  the 
> "profile" class would be a template class and the "profiles" class would be 
> an abstraction of "profile" which would act like a container class for all 
> the "profile" objects.
> 
> I'm really unclear on object oriented programming, especially in perl as it 
> doesn't really support OO properly.
> 
> Can anyone give me some guidance as to how I would go about doing this, what 
> methods I would need etc ........... I'm a bit lost with this .

At this point you are quite far from starting actual design. I guess,
you should think a bit about the functionality, the sources of data, the
generation of intranet pages and so on..... How your code will be used?

I offer you more hints and ideas. Contact me directly in mail.

Gabaux



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to