Re: Where does your APL application hold its settings?



Mike Kent wrote:

J. Clarke wrote:
Mike Kent wrote:

This is why one uses conditional compilation. Put it in HKLM and HKCU on
Windows and ~.<whatever> or /etc/<whatever> on Linux systems and wherever
the accepted practices call for on other Unix variants.

It's called "portability" and it can be a bitch.

Less so, frequently, if you avoid platform-specific facilities when
you reasonably can.

If you are going to "avoid platform specific facilities" then you're going
to be pretty much restricted to a command line.

Beyond that, I don't see it as harder to write
utility functions that read/write configuration from files than to
implement the
same interface using a registry, or a database.


It's not harder, it's not easier, but you're creating headaches for
administrators if they have to dig in your docs to figure out the
non-standard thing that you did.

Whereas they would /not/ have to look at the docs to suss stuff out out
if the Windows registry keys is used? The keys are easy to find and to
distinguish from the zillion keys for other things, and the acceptable
values are self-evident?

No, actually, they wouldn't if you did a reasonable job of naming the keys,
with perhaps your company name then the application name then the
application-specific keys.

As you say, "It's not harder, it's not easier".

...
"Last open file" etc would be an appropriate use of the registry,
putting the whole file there would not.

I would separate the state preservation interface from the configuration
interface -- they are separate concerns -- but OK, yes it is better to
store a file name than to store a copy of a file. Perhaps a bit more
fragile


So what do you propose to do, hardwire the location of the file into your
application?

???

The name of the last open file? The need does not exist in the app I
support at work; if it did, I might indeed associate the filename with a
known (hardwired) key in a known (hardwired) persistent associative store.
And, unless there were a compelling reason to do otherwise, I would use a
generically available type of persistent store.

And where would this "persistent store" be kept? I'm sorry, but you're
weaseling here.

--
--John
to email, dial "usenet" and validate
(was jclarke at eye bee em dot net)
.



Relevant Pages

  • Re: Where does your APL application hold its settings?
    ... the accepted practices call for on other Unix variants. ... The keys are easy to find and to ... store a file name than to store a copy of a file. ... And, unless there were a compelling reason to do otherwise, I would use a ...
    (comp.lang.apl)
  • Re: Buying Keys from Blizzard?
    ... Battlechest which has up to BC and another $40 for WotLK. ... point I can justify passing the store for the deal but if Blizz is ... DVD keys or buy the DVD keys from Blizzard. ...
    (alt.games.warcraft)
  • Re: EF Designer ignores my foreign key
    ... ItemGroupId}' that are partially contained in the set of primary keys ... I don't know why the EF team didn't fix this, and I can only describe from my own experience with reverse engineering an entity model from a relational schema, but as I do recall we had a similar bug very early on in LLBLGen Pro as well and I think it was even in the first beta cycle of v1. ... Well, unless they store that information, you can't: someone could have written the store XML meta data by hand and could have made an error. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Buying Keys from Blizzard?
    ... Battlechest which has up to BC and another $40 for WotLK. ... point I can justify passing the store for the deal but if Blizz is ... IIRC Blizzard charges the same as Gamestop, ... DVD keys or buy the DVD keys from Blizzard. ...
    (alt.games.warcraft)
  • Re: In 2006, 99.8% of burglars were unable to open or remove a gun safe.
    ... and/or keys. ... where are your facts that "most burglaries are inside jobs" Anyway, ... out of the cash register and put it in their pocket - that way the cash ... store owner will do it to write it off on his taxes. ...
    (misc.survivalism)