Spelling mistakes!

André andre.roberge at gmail.com
Fri Jan 6 11:10:25 EST 2006


KraftDiner wrote:
> try this:
>
> class x(object):
>    def __init__(self):
>       self.someName = "hello"
>    def someMethod(self):
>       self.sumName = "bye"
>
> find that bug.

Write a test for each method before writing the method.

Write the code once; read it critically (at least) twice.

If you find that too difficult, use a different programming language
(one in which you have to declare every variable) and become less
productive.

A.




More information about the Python-list mailing list