| Exploring Solution Spaces © Copyright 2003-2006, by C. Keith Ray | ||||||||||||||||||||||||
|
Archives
Subscribe |
2006.Apr.11 Tue Tell, don't ask. Keep this slogan in mind when doing object-oriented programming. Doing this assiduously results in good OO designs. Quick example: // BAD: asking another object for its values // and then computing something with those values. float w = rect.width(); // ASK for width float h = rect.height(); // ASK for height float area = w * h; // compute area println( "you will need " + area + " square meters of fabric" ); // GOOD: tell the other object what you want, and // it figures out how to do it. float area = rect.area(); // TELL me the area println( "you will need " + area + " square meters of fabric" ); Buddhism says that "ego" is something we make up, and thus have to constantly work to maintain it. This blog entry by Adrian Savage applies that understanding to leadership: "Ego and egotism are fatal to good leadership. They cause over-optimism, over-confidence and arrogance. They inflate people into domineering monsters focused on petty personal victories, wreck relationships and encourage leaders to take on too much [...]" Johanna Rothman points us to 100 rules for project management. I quote a couple of rules that relate to Ego:
I tossed in rule 63 to remind us in the software business that feature-creep was around in the days of "mostly hardware". And it needed testing and validation then just as software needs testing and validation now. |
|||||||||||||||||||||||