• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Indication that a local database is to be used ?

 
Liviu Carausu
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
It is specified in my documents that : "the program must allow the user to specify the location
of the database, and it MUST also accept an indication that a local database is
to be used"
I considered that the indication "that a local database has to be used" is
using of the "alone" mode flag when starting the application.
Do you think that I break the MUST rule here ?
Should I have a configuration GUI where the user can be able to switch
between local/remote mode ? Then why do we have separate flags
for starting the remote/local client ?
I somebody that used this approach and passed the exam ?
Many thanks,
Liviu
 
K. Tsang
Bartender
Posts: 3583
16
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Think about it. If we need to use flags to indicate which mode to run (alone or network), why would you want to allow users to switch mode while running the app? Besides stand-alone and network client setup requires different things. Stand-alone just need local database path. Network mode needs server IP and port but not the database path (cos user doesn't care whether the database file is located on the server side).

Hope this helps.
 
Liviu Carausu
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
K. Tsang wrote:Think about it. If we need to use flags to indicate which mode to run (alone or network), why would you want to allow users to switch mode while running the app? Besides stand-alone and network client setup requires different things. Stand-alone just need local database path. Network mode needs server IP and port but not the database path (cos user doesn't care whether the database file is located on the server side).
Hope this helps.

I can imagine a config view where, depending on the user selection, the contents of the local configuration view can be exchanged with the contents of the network configuration view and viceversa.
The config view can be started in a default mode given by the start parameter "alone" or empty - (remote).
I do not know if it is worth the effort. Some people are interpreting like this the must sentence. I personally do not find it useful but I do not want to mess around with the "must" sentences.
Thanks,
Liviu
 
K. Tsang
Bartender
Posts: 3583
16
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok that sentence with the must... I interpret it like this: The instructions clearly states you must allow the user to select the database path.

For stand-alone mode: choose database when starting app (file on same computer simple)
For remote mode: choose database when starting server; client input server IP and port to connect to already selected database on server

So as long as you do that you have satisfied the requirements regarding choosing database path.
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Liviu,

I think the instruction is a bit stupid, because when you start the application you have to add "alone" as argument or nothing. When you pass "alone" you indicate that you want to use a local database.

So when my application is started with "alone" as argument, a dialog is displayed with just the possibility to choose (or enter) the database file. when app started with no argument, dialog is shown where user has to enter address and port of the server.

so no option to indicate local db to be used or not, also no switching between a networked client or a standalone one

Kind regards,
Roel
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic