I just used a SimpleDateFormat...though I'd probably have added the regex if I'd thought it through properly. At least there were no user-entered dates, though, so I was just validating what was already in the database.
At least there were no user-entered dates, though, so I was just validating what was already in the database.
What of the "CREATE" functionality that allow users to create new records. At least you should have a field that accepts the date. You can only escape validation if you want to use three drop-down menus for the date (which to me is an over-kill, though is used it for booking records to ensure the integrity of the 48-hour rule) or do like Roel, just treat the dates as String, no validation.
Oladeji Oluwasayo wrote:What of the "CREATE" functionality that allow users to create new records.
That functionality was only required in the DB interface. And that interface treated all entries as Strings, as it had no knowledge of what the columns stood for. The business interface and user interface didn't provide a create function as that was not required.
Your user interface should be designed with the expectation of future functionality enhancements, and it should establish a framework that will support this with minimal disruption to the users when this occurs.
and with the specifications in the DB interface, I've already created a fully functional BOOK, UNBOOK, CREATE, MODIFY, DELETE, SEARCH & REFRESH. And I even went a step further by creating LIVE UPDATES (search results generation as you type) and creating a checkbox menu item to enable/disable it. Thank God that the marking criteria was given, maybe I would have developed a Filthy Rich Client without knowing it won't even add to my grade. I think I've gone too far here (sorry I'm an interface freak. Very funny, I actually thought Java is a 3D animation software and thats what brought me in.), I should have been visiting this forum more often to know what is worth it and what is not. I shouldn't have added these features because I'm under a very busy schedule and now I'm feeling that its all a waste of time. As any other person gone this far?
Oladeji Oluwasayo wrote:As any other person gone this far?
There are people who made more than required, adding not required functionalities like unbook/create/update/delete/... or making their GUI really fancy with a lot of icons,... but in the end you have done a whole lot extra and the only thing you might get out of it, is... losing points because your solution is too complex or you have some bugs in the extra functionalities you developed. So from that point of view it's the worst time investment you could possibly do, but you might have learnt a lot from these extras you developed, making it more than worth to make this extra effort.