[Tutor] I don't get it
Sean 'Shaleh' Perry
shalehperry@attbi.com
Fri, 20 Sep 2002 08:03:52 -0700
On Friday 20 September 2002 05:15, Erik Price wrote:
> On Friday, September 20, 2002, at 01:35 AM, Danny Yoo wrote:
> > However, I think your programs are also very monolithic. My opinion =
is
> > that your programming will become better if you define more utility
> > functions.
>
> if __name__ =3D=3D '__main__':
>
> Was really a lightbulb-turner-onner for me.
>
Indeed. It leads to unit testing and testing is not possible if you have=
all=20
of your code in one, big jumble. I find that forcing myself to write tes=
ts=20
also forces me to design my code better.