|
-
Jul 17th, 2002, 08:26 PM
#1
Thread Starter
Junior Member
Desinging a component
Hi everyone,
Would anyone mind sharing how they go about designing a component. I can't seem to find a method that I am comfortable with. I have used use cases before but am interested in other methods.
What questions do you ask to ferret out what the component should do? Do you have a methodology you follow, or fly by the seat of your pants?
Thanks
Kevin
-
Jul 17th, 2002, 09:06 PM
#2
What do you mean? Generally you develop components to solve problems and that may be helpful in more than one application. So its usually just standard problem solving, but I'm not sure I understood the question.
Who are you asking questions to? What are 'cases'?
-
Jul 18th, 2002, 05:51 PM
#3
Thread Starter
Junior Member
True components are developed to solve problems. They also can mimic real world objects, like a book, or a person or a car. Lets take for example a box.
How do you go about deciding what the properties and methods of the box are. Does the box do anything, pour something perhaps? How many sides does it have? How tall is it? What is it's volume?
So if you have a problem to solve, reading the problem will help you to define the class. Picking out the verbs and nouns in the problem help you define the properites and methods of the class.
Use cases are description of how a person would use your object. They are typically focused on single action a person would perform using an object. It is more a part of UML.
-
Jul 18th, 2002, 06:27 PM
#4
Well generally there is still some purpose for which the object is created and so I'd ask myself what is the least or the most economical set of properties and/or methods to have that object achieve it's purpose. Are there actually methods that you use to gether this information? I'm not really up on UML, I know what it is in the general.
-
Jul 18th, 2002, 07:28 PM
#5
Thread Starter
Junior Member
Hmm... I like that the most economical set of properties and methods, that changes ones thought pattern.
"Are there actually methods that you use to gether this information? "
Yeah there are few that I am aware of.
1. Is writing code on paper that you as a user (developer) using an object would expect to have to write. For example if you wanted to copy a file what code would you write to do that.
2. Use Cases, describes how a user (sales rep) would interact with your object. You list who the actor, secondary actors are, what the flow of events and business rules are.
3. Textual Analysis, read the problem statement and pick out the nouns and verbs. Analyze the nouns with an eye to first identifying the classes. After that examine the remaining nouns to see if they are properties. You might also discover hidden properties, and lastly examine the verbs to see if they describe any methods of the classes you indentified.
-
Jul 18th, 2002, 11:44 PM
#6
PowerPoster
*** are you talkling about? lol
I think you are making WAY more complex than it needs to be.
By Component, what exactly do you mean? a DLL, an ActiveX control?
Anywho, i find out exactlywhat the thing is supposed to do, then start doing it. I certainly don't write anything on paper and REALLY don't scan a description for Nouns and Verbs and crap. What kind of panzy college did you graduate from lol.
-We have enough youth. How about a fountain of "Smart"?
-If you can read this, thank a teacher....and since it's in English, thank a soldier.

-
Jul 29th, 2002, 08:21 PM
#7
Thread Starter
Junior Member
Hmm..clearly code by the seat of your pants.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|