This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

general questions

 
Nate Johnson
Ranch Hand
Posts: 301
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a few general questions about the assignent.
1) Should we javadoc any of our main methods or inner classes? (really a general java question)
2) Should the lines of code be kept under 80 characters for readability? My screen can see up to about 300 characters and it looks pretty funny to me, but some places like it kept to 80.
3) The instructions say not to modify the db.db file. So, when a user books a flight, are we not supposed to modify the file? This seems pretty messed up to me. I could see using a cache for local access, but not easily for multiple remote objects.
Thanks,
 
John Smith
Ranch Hand
Posts: 2937
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

1) Should we javadoc any of our main methods or inner classes? (really a general java question)
Why not? You will certainly not be penalized for doing so.
2) Should the lines of code be kept under 80 characters for readability?
I saw it somewhere in Sun's guidelines that the lines should be under 80 chars.

3) The instructions say not to modify the db.db file. So, when a user books a flight, are we not supposed to modify the file? This seems pretty messed up to me. I could see using a cache for local access, but not easily for multiple remote objects.

All it means that you should make a copy of db.db and work with it (yes, modify it directly, no cache). They are just asking you to submit the original db.db file with your submission.
Eugene.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic