Frage

What do you call a folder where you save information (Games saves, highscores, etc). Its just a naming conventioon question. By default you have src and for resources you can make a fodler called res and add it to the build path. I just want to ask out of curiosity what one would call a folder where you write information. I was thinking either sav (for save) or writ (for write). I'm using eclipse so i know how to add the folders to the buildpath.

War es hilfreich?

Lösung

  1. Not under src, since it's output, not... source.
  2. Highly application specific and depends on requirements you haven't spelled out. Does this need to be accessible to all users? Just one? From remote processes? Persistent between runs of the application? Automatically backed up / persisted? In a Dropbox? Loaded into MySQL? etc. Obviously the answers to this will vary between applications, and so will where the output should be.

Andere Tipps

Is this dynamic data created by the program? If so why would you have these files in your build?

For dynamic data the java.util.prefs package provides a potential cross platform solution, e.g. registry for windows and ~/.directories on linux.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top