Re: [Tutor] Function Programming Style
by Kai Weber other posts by this author
Jun 30 2003 5:17PM messages near this date
RE: [Tutor] Function Programming Style
|
[Tutor] Declaring a global variable (where?)
* Alan Trautman <ATrautman@[...].com> :
> In addition, if you combine all of your set functions into on gigantic
> function it will be much harder to debug and/or add features.
After reading your message serveral times: do you recommend smaller
set/get functions or not? Maybe my initial mail lacked some
informations.
I know Python does not need get/set but this is a common way of
accessing variables even if they "private", isn't it?
I am writing a GUI application which sets some meta informations on
files. There is a class for the information and one for the GUI. The
GUI just calls fileinfo.set_date(), fileinfo.set_url() and so on.
I now believe, this is the way to go: small, simple functions to
fullfill the KISS paradigm.
Kai
--
* mail kai.weber@[...].de
web http://www.glorybox.de
pgp 0x594D4132
_______________________________________________
Tutor maillist - Tutor@[...].org
http://mail.python.org/mailman/listinfo/tutor
Thread:
Alan Trautman
Kai Weber
|