This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hello everybody, My assigment says: In either case, 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, in which case, the networking must be bypassed entirely. Should it be possible to start the server and change the location via client GUI? Or can I hardcode the database location in server mode?
Should it be possible to start the server and change the location via client GUI?
I think that a client shouldn't be able to set the server database location, only the database location when run in stand-alone mode. If you except the latter case, as all clients must share the same database through calls to the server, it doesn't make much sense to let them choose its location individually. Of course, you may design your client application as a "remote server administration app", but I think it would go far beyond the scope of our assignment.
Or can I hardcode the database location in server mode?
In my instructions, all properties must be available through a GUI. If you have the same requirements, I think you need a server GUI to set it. Best, Phil.