Re: Desing Question re Multiple Constructors
- From: Roedy Green <my_email_is_posted_on_my_website@xxxxxxxxxxxxxx>
- Date: Mon, 31 Oct 2005 09:29:51 GMT
On Sun, 30 Oct 2005 08:33:59 -0500, "Rhino"
<no.offline.contact.please@xxxxxxxxxx> wrote, quoted or indirectly
quoted someone who said :
>It sounds like you're saying that whichever one "feels" most natural is the
>best one to use. Aren't there some sort of theoretical guidelines that can
>be used to help me judge which approach is most appropriate? Surely it can't
>be purely a "gut feel" kind of thing?
You can measure what I mean objectively by counting the keystrokes
necessary OUTSIDE the class to get the work done using each of the
designs.
The sort of things that show up in that sort of testing are: I nearly
always have a FILE and the class wants an URL and I end up doing a
conversion in the code that applies the class. You probably want to
change the interface to accept a FILE directly.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.
- References:
- Re: Desing Question re Multiple Constructors
- From: Roedy Green
- Re: Desing Question re Multiple Constructors
- From: Rhino
- Re: Desing Question re Multiple Constructors
- Prev by Date: Re: java virtual machine error
- Next by Date: Re: Streams question
- Previous by thread: Re: Desing Question re Multiple Constructors
- Next by thread: Re: Desing Question re Multiple Constructors
- Index(es):
Relevant Pages
|