> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Lie Ryan
> Sent: 02 July 2008 16:31
> To: [email protected]
> Subject: Re: [Tutor] General design question (Tim Golden)
> 
> > If I have a set of numbers, or strings etc. which have been
> generated
> > and I then want to do something with them, for example a sum function
> > call.  Is the best way to put those items in a list, or similar
> > container, before applying the function.
> 
> The best design tips I could give is not to optimize early. Choose the
> way which is the easiest to implement first, if for example, that
> simple
> solution doesn't solve the problem satisfyingly enough (e.g. it's not
> fast enough) then you find alternatives. Whether you should use a
> number
> and add them over and over or make a list then use sum is not a
> problem,
> choose one which feels most natural to you and the program you're
> writing.

Thanks to everyone for their suggestions, it is somewhat daunting to learn to 
'program'.

I have a relatively good understanding of all the key components now, its just 
putting them together to make something meaningful :)

If anyone has any tips/link/experiences to help me on my way I would appreciate 
it

Cheers

paul
 

__________ Information from ESET Smart Security, version of virus signature 
database 3236 (20080702) __________

The message was checked by ESET Smart Security.

http://www.eset.com
 

_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to