Josh Allen

Ranch Hand
+ Follow
since Jan 15, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Josh Allen

Rob Prime wrote:Although you are 100% correct, did you really think it was necessary to post in this year old thread?



Point noted, but yes, because I found this on my google search, and others are sure to find it in the same manner. It'll probably still be served up years from now.
13 years ago

Yohan Liyanage wrote:Thanks guys.

Will Sun do anything regarding this in a future compiler? It looks really bad when I put @SuppressWarnings in the code.



No, because it's your code that's the problem and not the compiler. You are doing something dangerous and it's being helpful by giving you a warning. Generics provide type safety and you are circumventing that type safety here. This will NEVER change.

Be thankful you have @SuppressWarnings to let the code reader know that you know what you are doing and the warning can be safely ignored.
13 years ago

can you describe your Client user interface, did use MVC pattern?


Sure. I did use the MVC pattern, as you pretty much have to in order to use Swing properly.

The GUI was built dynamically based on the properties file to determine which fields were searchable. Each searchable field was an editable combo box that stored the last searched for terms in it's list. These terms were stored in the properties file for persistance between run sessions.

In order to book a room you double clicked on the field (or pressed F2) and entered the customer #. Any errors were displayed in a status bar at the bottom or a dialog box, whichever was most appropriate.

I thought it was really nice and usable, clear and simple, myself, but I got a relatively mark on the GUI, so I wouldn't use it as an example
16 years ago
10 Kb or 3 1/2 pages.
16 years ago

Originally posted by Martin Sturzenhecker:
Congratulations!

Just a short question: How long (xx kB) was your choices.txt ?

I'm currenlty wrapping up mine and really have no clue what should be sufficient.


Cheers
martin

16 years ago
Hi, thanks for all your help. I just got the results back of my URLyBird assignment. I was dissapointed with the infamous 44/80 for locking, as I was sure I did everything right. I even created unit tests for it. Below is my score.

I used Java 1.5, including generics and java.util.concurrent.

I easily spent 400 hours on the assignment, and enjoyed every minute of it!

Cheers!

Score: 348
Comment: This report shows the total 1.4 SCJD points that could have been awarded in each section, and the actual number of points you were awarded. This is provided to give you per-section feedback on your strengths. The maximum possible score is 400; the minimum to pass is 320. General Considerations (maximum = 100): 100 Documentation (maximum = 70): 70 O-O Design (maximum = 30): 30 GUI (maximum = 40): 24 Locking (maximum = 80): 44 Data store (maximum = 40): 40 Network server (maximum = 40): 40
16 years ago
Okay, well if it's not something that people do then I won't worry about it. I don't want to screw up my files by running native2ascii either, I'm not sure what would happen if you ran it twice on the same file for instance.
It's the URLyBird assignment but it doesn't matter which one you will get as they are equally difficult. I fufilled all of the requirements and didn't add any fluff, although I came up with the best design I thought possible. I used RMI and jdk 1.5 using generics the new concurrency package. I just created userguide.html as you weren't allowed to use outside libraries like JavaHelp anyway. I created complete javadoc for all my public and private members which added to the code size considerably (I used the doccheck utility).

I had over a year professional java programming experience before I started the assignment and have been working on when I am able since January.
I forgot to mention that not including the logging properties in your submission works because during development it is specfied on the command line using the standard mechanism of setting the System property java.util.logging.config.file.
I used the standard logging mechanism as well. I had a logging.properties file that I used while developing, but am not going to include when submitting. There is no need to generate it dynamically, as java includes many ways to for the user configure the logging themselves if they want something different then the default.
My submission (I'm finally ready to submit!) is 1500 lines of java code, 4300 including comments.
Here's the output from simian:

Found 24 duplicate lines in 4 blocks in 3 files
Processed a total of 1471 significant (4273 raw) lines in 24 files
Do I need to use native2ascii on all my files before I jar them up for submission? Or does jar take care of this. choices.txt must be in ascii character encoding, but the default for windows is Cp1252.

Should I also run it on my source .java files? I'm not sure what jar takes care of if anything and I don't have a unix box to test it on.
You can use System.getenv() which is no longer deprecated since JDK 1.5.

Javadoc
17 years ago

Originally posted by Vincent Hernandez:
The topic pretty much speaks for itself. Any pointers?


Troll.
Thanks for help. I really do think that it's an odd conflict in the requirements, even if technically a solution can be worked out to fufill both. It's just that to do so you would have to essentially create two search functions, and I question if this was actually an intent of the assignment.

To be safe I'm going to implement a secondary function in the client that goes through the records returned by the server and filter out ones that don't exactly match.