Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

Sigrid Kajdan

Ranch Hand
+ Follow
since Jan 14, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
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 Sigrid Kajdan

Hi Roel,

many thanks for the hint. I also have this "taken" instead of "pending" and so it could be O.K., but with all these different and possibly changing IDs you get from Sun and Prometric, I will write a mail to Sun all the same...

cheers,
Sigrid
Hi,

I've uploaded the assignment nearly 2 weeks ago, and taken the essay exam last Monday.

In the events table in the certification database (https://i7lp.integral7.com/durango... etc) I see an entry that the essay exam was taken, but no mentioning of the assignment whatsoever... and in the Certmanager there's no change at all, it still shows the upload and download buttons and nothing more...

Now I'm getting worried about the assignment... could you, who already know, please tell us how it went in your case?

thanks a lot for that
Sigrid
Hi,

I finally got it! I don't have to think about where the records come from because.. I get them from the hotels (in whatever way)!!!

So it's clear finally, I don't touch the dates :-)

Thanks again
Sigrid
Hi Bob, hi Roel,

thanks a lot for your quick and very helpful replies!

I think I will modify the application accordingly. As you two have passed (and with what score!) your way must be correct :-)

The way I did it is really problematic for sure, because then you cannot even book a room for tomorrow night if it's reserved for this night right now, as there's only one entry per room...

On the other hand, I still wonder about the creation of new entries. I imagine there should be some batch job running in the night, creating new entries (till 48 hours in the future)...
The problem is that if I imagine starting "afresh", perhaps building an own web site for something like this, and I have a something that can be booked per date and per customer, I surely would create new entries when the booking happens - not new entries in the table for the something, but in the roomID-customerID-date lookup table....

So I fear that although the way you did it does not have the flaw that mine has, it is also not really realistic... or don't you think?

Thanks again very much
Sigrid
Hi all,

I'm just re-reading the instructions.html - should have been the last step before finishing, hopefully, this evening, after nearly 2 years - and now I'm caught by one thing I didn't think about at all:

I always assumed that you have one record per hotel room, so when you book a room you modify date and owner. Otherwise, you'd have to create a new record per hotel room, per night...!

Unfortunately, I always took this completely for granted, so I didn't even think about the pro's and con's. Now, thinking about it - what is totally illogical about my way is that you can only book the next night when the one previously booked has passed... !

On the other hand, if there's a record per night - who is creating all those records?

Or should it work like this: The user edits the date and puts a new one, and I CREATE a new entry in the database at that moment? I never thought of that, because I always equated booking (in the client) with updating (in the db access part).

I'm really totally confused now, especially as I wanted to submit right now... I also wonder why I didn't even think about it. Perhaps because
this "database" is so unrealistic anyway - if you had had one table describing the rooms, and one mapping a date and a customer ID to the room id...

I'd be glad for any help here...

Ciao
Sigrid

I'm really totally confused now
Hi Roel,

thanks for your quick answer! You're right, it makes no sense spending time on something that does not count anyway (I think they say

Your programs must not require use of command line arguments other than the single mode flag,



which for me would mean that it's allowed to use ommand line arguments, as long as the application will run without, too - but anyway)

Unfortunately I just discovered a much bigger problem which will probably keep me from submitting any time soon - would be great if you could have a look at my new post

Thanks again
Sigrid
Hi all,

I am struggling with java.util.logging: I have a custom ub-logging.properties which works fine when I run the runme.jar from a directory where there's also the ub-logging.properties - using



but I can find no way to make java take it from inside the runme.jar itself

If it was allowed to pack it directly into submission.jar, it could again work after the tester unpacked the submission.jar... But from the instructions I think we are not allowed to put any additional files there...

I'm not sure what to do now - am I overlooking a way to make java read it from inside the jar, or is it just not possible? This would be a pity because I wanted to have a "how to start it with application-specific logging" section in the Guide And of course the standard behaviour of the jdk does not fit too well here...

Thanks a lot for any suggestions!
Sigrid
Hi Bob,

thanks again... just wanted to make sure I'm not writing something totally incorrect in my choices.txt

ciao
Sigrid
Hi Bob,

thanks a lot for your answer!

Regarding your question about whether my view implements an interface - no, none. In fact in the other parts - network layer, business layer, database layer - I am working with interfaces, but in the GUI part I have a very straightforward implementation of (not taking into account configuration and validation here) just one view, one "BookingTableModel" extending AbstractTableModel and two Controllers (local/networked) with a common superclass.
I suppose this is because in the GUI part, I started out following the Monkhouse book quite closely, having never worked with Swing at all...

Regarding the pattern question again... if I understand you correctly, you would not see a problem in my calling my design a "Passive view", do you?

Thanks again
Sigrid
Hi all,

after reading about the "Passive View" pattern in "JUnit in Action", I tried to follow it in my GUI part. So, I have the ActionListeners in the controller, not in the view, and whenever the controller needs input data, it asks the view for it explicitly.

However, I'm not really sure that what I implemented actually IS a Passive View... Even though all actions are taken in the controller, there is a connection between the view and the model - the JTable is part of the view, and it has a TableModel. So, I have the following code in the controller:


Does this relationship between table and TableModel already break the pattern?

I must also admit that it's my first experience with GUI programming (making the Swing part quite cumbersome anyway...), and though I've tried reading the articles on "GUI Architecture", "Passive View", "Supervising Controller" etc. on the Martin Fowler website, these things do not really get clear to me

Thanks a lot for any hints,
Sigrid
Hi,

thanks for your answers! In fact, after reading the instruction, I also was quite sure that writing javadoc for the public methods was enough... - just like you say, Roel.
But when I read that quite a few people think otherwise, and document the private methods anyway, I wonder whether it would be more safe to do this, too.

Perhaps it's not a must, but like you say K., it counts for the documentation? I guess I'll just do it too, then.

Cheers
Sigrid
Hi all,

it's perhaps a little paranoid to ask this, but... when you say you don't generate javadoc for private members, does it mean you just don't GENERATE it or don't you write any

(I have many private methods and would be glad to spare myself some work here...)

Thanks in advance
Sigrid
Hi Tsang,

thanks for your answer.
Yes, unfortunately I have the problem of the "non-requested" character really ending up in the text field - so I really have an invalid entry in the text field!

(The listener itself works - first the character is entered and then immediately the listener is called...)

ciao,
Sigrid

Hi all,

I have a problem with the keyboard shortcuts (mnemonics) - when the cursor is in a text field after entering e.g. the database location, when I now click alt + the corresponding key for a button, the character assigned to this combination is first inserted to the text field and then the button's listener is called, resulting in an invalid field content.

I started development on linux first and only recently switched to Mac OS. If I remember correctly, I did not have this problem on linux.

Does anyone have the same problem and perhaps have an idea what I can do?

Thanks a lot in advance,
Sigrid
Hi Paul,

I think you´re trying to build a Swing command-line client, which is a contradiction.



Of course you're right...! I really should have thought of that myself

Thanks a lot, now it's clear!

Ciao
Sigrid