Re: [Tutor] Best practice for generalizing and documenting each method's behaviour

2013-08-30 Thread Alan Gauld
On 30/08/13 19:10, Bao Niu wrote: ... However, when there are many of such classes, exactly at what point to invoke check and clean behaviour becomes a little blurred. I'm not too sure what you mean by that. Can you give an example? There is a desperate need for generalizing and documenting

[Tutor] Best practice for generalizing and documenting each method's behaviour

2013-08-30 Thread Bao Niu
I'm starting a small project coding in Python as I learn the ropes. As the project grows bigger, there are more and more overlapping and even redundant methods. For example, several classes have a checkAndClean_obj_state() method. If just one or two such classes, it is easy to analyze the behaviour