Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best Pratice: Require passed parameters?
Message
From
17/12/2002 15:58:18
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Best Pratice: Require passed parameters?
Miscellaneous
Thread ID:
00733856
Message ID:
00733856
Views:
56
I was happily building business objects, and suddenly I noticed I was doing method calls to the objects two different ways. All the objects work off parameterized views of the data; some methods operated on "pre-existing data", while others passed the parameter and fetched a new data set.

Because this is a recipe for programmer frustration, some of the methods are going to change, but which ones..? Which methodology is better, and why?

Or would it be better to recode them all so that no parameter worked on the current data, and a passed parameter requeried before acting?

Chris.
Next
Reply
Map
View

Click here to load this message in the networking platform