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
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
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
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: