"why the registry prejudice?"

I have a few things that I don't like about the approach, althought they are mostly out of a user's perspecitve.

  1. Comments
  2. Unreadable
  3. Multi platform problem

1. With text files, it's easy to comment a certain value out. This way, you will keep the old value, while you can try a new value. Besides the altering, I like some explanation in configuration files anyway: "This value is used for yadayadayada". With the registry approach, you can of course alter values too, but either you should have a good memory, or write every old value down somewhere, in case you ever want to return to the old value.

2. Maybe it's just me, but I find it terribly hard to find where exactly an app. stores its configuration, due to the massive ammount of data that is all located in one place. It can take quite a bit of time to finally locate the "folder" (or whatever it is called) with the configuration options.

3. As I stated, I already have a working app. targeted for *NIX systems, which don't have a registry. Hacking the registry support in, would make no sense for the *NIX systems and only add problems (if I decide to add one option to the config file, I would have to make sure the registry would get that change too, which I am likely to forget, for I don't use a win32 system myself).

--
b10m

All code is usually tested, but rarely trusted.

In reply to Re: "Porting" scripts to Win32 by b10m
in thread "Porting" scripts to Win32 by b10m

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.