Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Video game bookings datastore [closed]

Tags:

java

The assigned homework problem needs a function to store a user-selected video game. This is a small school project, and I was wondering what would the best way to store the information. The program must access the video game bookings, but I think a database is a little overblown for such a small task.

What would you do?

like image 953
MadDogShelly Avatar asked Dec 03 '22 14:12

MadDogShelly


2 Answers

Usually, for small school projects, I invent my own flat file format.

Usually it is a simple CSV-like file, with some key-value pairs of some sort.

Depending on the type of information you need to save XML may be the way to go.

Also, if the information only needs to be saved for a short period of time (One run of the application), and amount of data being saved is relatively small, simply keeping all of it in memory will most certainly make the program much faster, and usually easier to write.

like image 91
jjnguy Avatar answered Dec 25 '22 14:12

jjnguy


Kai's right, although a good way to manage 'bookings' info of video games would still be a small database (try sqlite). I'm sure you'd want to associate bookings info with a user and so any sort of relationship would also justify the use of a database.

like image 38
strange Avatar answered Dec 25 '22 15:12

strange