quick and dirty settings
#5
(07-08-2015, 04:59 AM)clasqm Wrote:
(07-07-2015, 01:48 PM)lelldorin Wrote: Why you des not use attributes?

That's a good question.

First, of all let me say that while I love yab, I have a love/hate relationship with Haiku. When I wrote Trope some years back, I still had this faint hope that someone might revive the old flyab project so I could write cross-platform apps in yab. Silly, I know. Since we are not likely to see BeFS installed on Windows or MacOSX machines, ever, I wanted to keep things portable.

Also, I actually started to design this app before Jan__64 added attribute handling to yab (somewhere around Haiku alpha2 IIRC). It could be done, but with a lot of SYSTEM$ calls.

But anyway, what are the advantages of doing this particular task with attributes? One that I can see is that the user is less likely to mess with them, but I try to build in defaults when reading my settings file yields gibberish, and you have to do that regardless of how you store the settings. I don't see a huge speed advantage on any vaguely modern machine.

Attributes turn the file system into a flat-file database. But when do you need a database? When you have a lot of data. You don't load Microsoft Access to store six lines of text.

In my next major project, I intend to use attributes extensively. I'm even creating a new filetype for them. Because they must be able to store thousands of data records.

But it's great that we have three different ways of doing this on record here now. People can try all three and see which one works for them.

I remember seeing a BASIC routine somewhere that allowed the parsing of MS-style .ini files. I'll see if I can get my hands on it again and post it here for reference purposes.

yes jan add attribute Support past my asking about it, but he include a limitation of signs to store into it (can be that bbjimmy solve this already) so i use the system attribut tool. this one stores without limutation? i dint know but more then 4 signs.

my project buildLOG uses attributes too and there i store Informations out of textcontrols and textedits
Reply


Messages In This Thread
quick and dirty settings - by clasqm - 07-05-2015, 06:55 PM
RE: quick and dirty settings - by lelldorin - 07-07-2015, 01:48 PM
RE: quick and dirty settings - by bbjimmy - 07-07-2015, 02:33 PM
RE: quick and dirty settings - by clasqm - 07-08-2015, 04:59 AM
RE: quick and dirty settings - by lelldorin - 07-08-2015, 06:12 AM
RE: quick and dirty settings - by bbjimmy - 07-08-2015, 11:05 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)
Free Web Hosting