Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Naming conventions again........
Message
From
01/09/1999 02:34:38
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
28/08/1999 00:10:36
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00258085
Message ID:
00260032
Views:
21
>Hi Charlie ----
>
>>I like polymorphistic names, so I think MS erred by naming things like PageCount, FormCount, ButtonCount. It's a PageFrame! It has a count! The property should be Count. If something has a Name, I call it Name, not CustName. It's in the Customer table, so that's the context.
>
>I personally agree with the customer table argument, but several server database design tools would disagree.
>
>OTOH, it's PageCount, FormCount, etc. because it's a reference to a collection of the root object, NOT the root object itself. Therefore, PageFrame.Count would be non-sensical. Is this a count of PageFrames? Is this the Count number for this PageFrame? And what about objects that hold multiple collections...they can't all be Count, can they?

Since there are no other things you can have in the PageFrame except Pages, no other thing in a grid but columns... why not just ControlCount? Imagine how shorter would all the recursive routines which, drill into containers, be. No need to test the baseclass of an object to know what property holds its ControlCount. "Is it Tuesday? Then this must be Jakarta" (I think it was Kissinger).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform