Re: questions about programming styles

2007-05-22 Thread kaens
> Thanks. I think what I actually want to learn is design pattern in a > looser sense, not in the computer-science-vocabulary-sense. > > I'm a graduate student in science, and python is my favourite programming > language in daily work. I can solve most of the problems with python, but > my program

Re: questions about programming styles

2007-05-22 Thread [EMAIL PROTECTED]
Wildemar Wildenburger wrote: > [EMAIL PROTECTED] wrote: > >> Thanks a lot for all kind replies! >> >> I think I need a systematic learning of design patterns. I have found >> some tutorials >> about design pattern about python, but can somebody point me which is >> the best to start with ? >>

Re: questions about programming styles

2007-05-21 Thread Wildemar Wildenburger
[EMAIL PROTECTED] wrote: > Thanks a lot for all kind replies! > > I think I need a systematic learning of design patterns. I have found > some tutorials > about design pattern about python, but can somebody point me which is > the best to start with ? > When you say "Design Patterns", what do

Re: questions about programming styles

2007-05-21 Thread [EMAIL PROTECTED]
Arvind Singh wrote: > On 5/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> which is the better way to calculate the value of attributes of a >> class ? >> for example: >> >> (A) >> def cal_attr(self, args): >> #do some calculations >> self.attr = calculated_value >> and

Re: questions about programming styles

2007-05-20 Thread Arvind Singh
On 5/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > which is the better way to calculate the value of attributes of a class ? > for example: > > (A) > def cal_attr(self, args): > #do some calculations > self.attr = calculated_value > and then if the vlue of attribute is

Re: questions about programming styles

2007-05-20 Thread Michael Hoffman
[EMAIL PROTECTED] wrote: > (1) > which is the better way to calculate the value of attributes of a class ? > for example: > > (A) >def cal_attr(self, args): >#do some calculations >self.attr = calculated_value > and then if the vlue of attribute is needed, >self.cal_attr(a

Re: questions about programming styles

2007-05-20 Thread Ben C
On 2007-05-20, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi all, I'm not skilled at programming, so sorry for my ignorance. > My questions: > > (1) > which is the better way to calculate the value of attributes of a class ? > for example: > > (A) > def cal_attr(self, args): > #do

Re: questions about programming styles

2007-05-20 Thread Bjoern Schliessmann
[EMAIL PROTECTED] wrote: > Hi all, I'm not skilled at programming, so sorry for my ignorance. ?! Seems you met many not-so-nice programmers. > (1) > which is the better way to calculate the value of attributes of a > class ? for example: > > (A) > def cal_attr(self, args): > #do s

questions about programming styles

2007-05-20 Thread [EMAIL PROTECTED]
Hi all, I'm not skilled at programming, so sorry for my ignorance. My questions: (1) which is the better way to calculate the value of attributes of a class ? for example: (A) def cal_attr(self, args): #do some calculations self.attr = calculated_value and then if the vlue of