ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-Tutor
python-Tutor
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved