Re: Simple database

From: James Wilkinson (james_at_westexe.demon.co.uk)
Date: 07/23/04

  • Next message: Scot L. Harris: "Re: OT: vpn questions (stops using my internet connection and starts using the gateways?)"
    Date: Fri, 23 Jul 2004 00:16:52 +0100
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    
    

    Nifty Hat Mitch wrote:
    > A pile of notes sounds like a pile of text files.
    >
    > Organize them in a directory with sane file names.
    >
    > Edit them into a simple but consistant format that permits
    > you to search with 'grep'.
    >
    > If you want to think about fields use an XML/HTML sort of structure to
    > tag blocks of text and key words.
    >
    > <Title> Good title </Title>
    > <Index> word list </Index>
    >
    > Once you do this sort of homework it begins to make sense how you wish
    > to import this stuff into a data base. The data base might only
    > contain key words and file names. It need not contain the full text
    > of the files.

    Great idea.

    I'd question, though, whether XML isn't overkill for this sort of
    application. If the original poster just wants to organise things
    consistently, something like an e-mail might be better. For example:

    ----
    Title: The Art of Unix Programming
    URL: http://www.catb.org/~esr/writings/taoup/html
    Keywords: Unix, philosophy
    Eric Raymond discusses some of the Unix traditions and mindset. He shows
    where and why it has been successful, and gives good advice on how to
    work with the Unix world-view.
    His chapter on designing Unix file formats is well worth reading. Quote:
    "The most serious problem with XML is that it doesn't play well with
    traditional Unix tools. Software that wants to read an XML format needs
    an XML parser; this means bulky, complicated programs. Also, XML is
    itself rather bulky; it can be difficult to see the data amidst all the
    markup."
    (http://www.catb.org/~esr/writings/taoup/html/ch05s02.html)
    ----
    I know you're advising a simplified ML format, but it seems to me that
    you might as well go for XML (and get the benefit of XML programs, which
    will be overkill for the original poster), or go for something simple
    that works well with Unix line-oriented tools (grep and cut, in
    particular).
    In any case, the original poster will not be learning a simple (and
    limited) database application, but the Unix shell: a *much* more
    worthwhile skill.
    (I'd also note that filesystems are becoming much more like databases:
    you can seriously call this a free-text non-relational database).
    James.
    -- 
    E-mail address: james@ |    "Just for once, I wish we would encounter an
    westexe.demon.co.uk    | alien menace that wasn't immune to bullets..."
                           |     -- The Brigadier, 'Doctor Who'
    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Scot L. Harris: "Re: OT: vpn questions (stops using my internet connection and starts using the gateways?)"

    Relevant Pages

    • Re: LISP & "The Art of Unix Programming"
      ... > The problems of treating even simple data as XML are greater than the ... and that the Unix folk in private know that - which is why ... grep: ./file: No such file or directory ... If the shell had real lists, ...
      (comp.lang.lisp)
    • text to xml conversion
      ... I am trying to send a XML file via SFTP staying completely in UNIX. ... It is the conversion to XML that is the problem. ...
      (comp.text.xml)
    • Re: calling a dot net web services from unix
      ... You have to hope that there is a tool to generate proxy classes on the ... unix platform you're working with. ... The classes these tools generate will send XML xml straem to your MS web ... calling a dot net web services from unix ...
      (microsoft.public.dotnet.framework.webservices)
    • Re: Simple database
      ... >> A pile of notes sounds like a pile of text files. ... It is true that XML is more than he needs. ... > Eric Raymond discusses some of the Unix traditions and mindset. ... > traditional Unix tools. ...
      (Fedora)
    • Re: COMP-1 and COMP-2 resolution on unix (using microfocus)
      ... i have migrated the data on mainframe to SOLARIS UNIX. ... UNIX system. ... IEEE floating point. ... format and on UNIX it is IEEE format. ...
      (comp.lang.cobol)