[Tutor] When to use a class

2007-09-17 Thread Eric Lake
I am still trying to understand when to use a class and when not to. All of the coding that I have done in the past (Python, Perl) has been procedural / functional. I would really like to do more OOP but I am not really sure when I need it. I have the following code. Is there any way that it

Re: [Tutor] When to use a class

2007-09-17 Thread Michael Langford
Short sections of code are not where classes shine. Classes become much more valuable when you start to get a lot of hairy details you need to pass around. For your code, for instance, you could pass in the whole registry key you want, and have out pop a RegKey object. This would be say, usable

Re: [Tutor] When to use a class

2007-09-17 Thread Alan Gauld
Eric Lake [EMAIL PROTECTED] wrote I am still trying to understand when to use a class and when not to. All of the coding that I have done in the past (Python, Perl) has been procedural / functional. I would really like to do more OOP but I am not really sure when I need it. You virtually

Re: [Tutor] When to use a class

2007-09-17 Thread Kent Johnson
Eric Lake wrote: I am still trying to understand when to use a class and when not to. All of the coding that I have done in the past (Python, Perl) has been procedural / functional. I would really like to do more OOP but I am not really sure when I need it. My take on that question is here: