Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Some questions about the assignment

 
Cathy Young
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, guys, your input will be very much appreciated!
1. If use RMI, does this application have to work on any port (will be penalized for working on default port only)?
2. Can awt components be used at all?
3. Is there any inline documents allowed? Should it go to javadoc? How?
4. Do private classes and its methods have to have javadoc, like event handler and actionPerformed (), etc.?
5. Can we modify any class they provide besides Data.java?
6. Are we supposed to change the javadoc of the provided classes if they are not complete?
7. Do design patterns have to be used?
Thanks!
--Cathy
 
Max Habibi
town drunk
( and author)
Sheriff
Posts: 4118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Catch, Answers below.
Originally posted by Cathy Young:
Hi, guys, your input will be very much appreciated!
1. If use RMI, does this application have to work on any port (will be penalized for working on default port only)?

If you're only going to use a given port, then I suggest that you clearly document that fact. However, I further suggest that you make the port number selectable. It's very easy to do, and a better practice.

2. Can awt components be used at all?

Yes, in that swing components are built on them. So, you have to use the various layouts, eventhandlers, etc. However, you definitely want to use a jtable, jbuttons, etc.

3. Is there any inline documents allowed? Should it go to javadoc? How?

I'm not sure I understand this question. Can you please tell me what you mean by �how�?
As for the other parts of your question. Yes, inline comments are allowed(but discouraged), since it�s not the style that the project was originally written, and you want a consistent style.

4. Do private classes and its methods have to have javadoc, like event handler and actionPerformed (), etc.?

Not sure here, but I suggest that they do so. Both for your own clarity, and to make the assessors feel warm and fuzzy.

5. Can we modify any class they provide besides Data.java?

Some people do, most don't. I suggest that you not 'fix' anything that you�re not certain is actually broken.

6. Are we supposed to change the javadoc of the provided classes if they are not complete?

Yes, you should fix them if you need to. Where, specifically, are you seeing a need to?

7. Do design patterns have to be used?

Chances are, you'll use design patterns without naming them as such: these will probably be MVC, factory, Adaptor, Delegate, and possibly Command. Now, if you actually learn the names and read a paragraph or two about them, then you'll probably get access to the wisdom and experience of coders who are way smarter then I am, and who might steer you away from awkward usage. If you don�t, you�ll probably still be alright.

Thanks!
--Cathy[/qb]

HTH,
M, author
The Sun Certified Java Developer Exam with J2SE 1.4
[ December 11, 2002: Message edited by: Max Habibi ]
 
Cathy Young
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Max! That helps!
Sorry, I did not write some of the questions clearly enough.
For 1, I did not allow for arbitrary port simply because I the user documentation has to be changed about how to execute it. Now seems I'd better do that.
For 3, what I am not sure is if some inline documents will help at all for those of our own methods, like criteriaFind(), or they are discouraged at all. "How" should be "How to include inline documents in javadoc if possible at all"
For 5, I am thinking of changing the DatabaseException.java class.
For 6, I just noticed there is not any javadoc comments in DatabaseException.java.
Thanks a lot!
--Cathy
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic