Re: Design qq
- From: Faton Berisha <fberisha@xxxxxxxxxx>
- Date: Tue, 26 Jun 2007 19:25:35 +0200
Bluto Blutarsky wrote:
... is it better to have a program with, say, 10 methods
and then call each 10 from the mainline OR have the mainline call
the first which calls the second which calls ... the second
... the third ... thr tenth.?
b
The answer depends upon the simulation you are going to model.
The following are some of the issues you should consider in order to
properly answer the question.
Are the remaining 9 methods parts of the first method's algorithm? (It
might help you answer this question if you thought whether these should
be public or private methods.)
Is the reason for having 10 methods breaking the complexity of the
original problem, or is it the complexity of a sub-algorithm?
What is your design? Which are its components?
What does the word "better" in your question mean? Optimized speed? Some
other resource? Better design architecture?
Hope it helps.
Faton Berisha
.
- References:
- Design qq
- From: Bluto Blutarsky
- Design qq
- Prev by Date: Re: how does windows find java.exe?
- Next by Date: Re: how does windows find java.exe?
- Previous by thread: Re: Design qq
- Next by thread: how does windows find java.exe?
- Index(es):