|
panu <panu@fcc.net_zerospam> might (or might not) have written this on
(or about) Tue, 29 Apr 2003 20:09:35 -0400, :
>Ian Upright wrote:
>
>> ... I really don't think prefixing or postfixing instance variables
>> makes for good readable code.
>
>
>This depends on how *often* you use instance variables.
For ten years I used the 'its' prefix for member variables. I've
since abandoned the practice in favor of keeping my methods and
classes so small that no one could possibly miss what the variables
are.
Robert C. Martin | "Uncle Bob"
Object Mentor Inc.| unclebob @ objectmentor . com
PO Box 5757 | Tel: (800) 338-6716
565 Lakeview Pkwy | Fax: (847) 573-1658 | www.objectmentor.com
Suite 135 | | www.XProgramming.com
Vernon Hills, IL, | Training and Mentoring | www.junit.org
60061 | OO, XP, Java, C++, Python |
|