Results 1 to 9 of 9

Thread: Ideas for note-taking app

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2008
    Location
    Dominican Republic
    Posts
    733

    Question Ideas for note-taking app

    Hello.

    I'm looking for ideas for a note-taking app. I would like to know if there is a better idea as to where store the notes (these are dependent on the author and title of a book) the user is going to take.

    I have thought of using a XML file for storage, the hierarchy of the file would be like this:

    <Parent node>
    <Author>
    <Title>
    </Title>
    </Author>
    <...and so on>
    </Parent node>

    This file would be then loaded into different data tables (3: author, title, notes), for editing the information would be read from and written to each data table. Before closing or when the user wants to, the information would be written to the XML file.

    I have a sense that this isn't the most efficient way of achieving this. This is also a to-be-used-at-home app.

    Thank you.
    "In our profession, precision and perfection are not a dispensable luxury, but a simple necessity."
    Niklaus E. Wirth


    Rate any post that helped you, it's a good way of saying thanks
    Please specify your Visual Studio Version!

    Why rating is useful

    My Code Bank Submissions: How to determine Windows Version| Working With Mouse Events | Blocking Input Using API | Get host's IP | Minimize to system tray "animated" | Colored ListBox (custom fonts, colors, highlight) Updated -New Class! | [VS 2008] Strong encryption and hashing class - Updated! 31/August/2009 | Create a shortcut using IWshRuntimeLibrary

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Ideas for note-taking app

    off the top of my head... if the author and title are related to the note, this would make sense to me:
    Code:
    <Notes>
        <Note title="title" author="author">
               This is my Note!
        </Note>
    </Notes>
    the author and title are attributes that belong to the note.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: Ideas for note-taking app

    "This file would be then loaded into different data tables (3: author, title, notes)"
    HI.You better look at the "notes".I don't think there is a need for a 3rd table of notes.You either put it on the author, or the title or both.A notes stand alone table is a bad practice here, unless i'm missing out something on your thoughts.
    Also you say you will use data tables.So i'm assuming you're using DAL?How are you planing to connect xml and DAL, because although you don't want to use data related software an sql express would be so bad
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  4. #4
    PowerPoster VBDT's Avatar
    Join Date
    Sep 2005
    Location
    CA - USA
    Posts
    2,922

    Re: Ideas for note-taking app

    I think this could be an option:
    Code:
    <books>
        <book title="title" author="author">
            <note>This is Note 1</note>
            <note>This is Note 2</note>
        </book>
        <book title="title" author="author">
            <note>This is Note 1</note>
        </book>
    </books>

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2008
    Location
    Dominican Republic
    Posts
    733

    Re: Ideas for note-taking app

    Thanks for the replies.

    @sapator: No, I hadn't thought of using only 2, I will look into it. What's a DAL? My teacher had advised me to use SQL Express too, but, I know this might be a dumb question, does the target pc need to have SQL Express installed?

    @VBDT & techgnome: thanks for that .

    I had thought of read each author and, with the data read from the XML file, fill each data table with that information.
    "In our profession, precision and perfection are not a dispensable luxury, but a simple necessity."
    Niklaus E. Wirth


    Rate any post that helped you, it's a good way of saying thanks
    Please specify your Visual Studio Version!

    Why rating is useful

    My Code Bank Submissions: How to determine Windows Version| Working With Mouse Events | Blocking Input Using API | Get host's IP | Minimize to system tray "animated" | Colored ListBox (custom fonts, colors, highlight) Updated -New Class! | [VS 2008] Strong encryption and hashing class - Updated! 31/August/2009 | Create a shortcut using IWshRuntimeLibrary

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: Ideas for note-taking app

    Are you trying to avoid using a database for some reason?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  7. #7
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Ideas for note-taking app

    Duplicate Threads merged and moved to XML section

  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2008
    Location
    Dominican Republic
    Posts
    733

    Re: Ideas for note-taking app

    @jmcilhinney: not really, I just want to know, if there is, the simplest solution; but, if the best way is to use database (maybe access or anything else), then I should go that way. I just want to know what you guys think.
    "In our profession, precision and perfection are not a dispensable luxury, but a simple necessity."
    Niklaus E. Wirth


    Rate any post that helped you, it's a good way of saying thanks
    Please specify your Visual Studio Version!

    Why rating is useful

    My Code Bank Submissions: How to determine Windows Version| Working With Mouse Events | Blocking Input Using API | Get host's IP | Minimize to system tray "animated" | Colored ListBox (custom fonts, colors, highlight) Updated -New Class! | [VS 2008] Strong encryption and hashing class - Updated! 31/August/2009 | Create a shortcut using IWshRuntimeLibrary

  9. #9
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: Ideas for note-taking app

    Hi.
    DAL= Data Access Layer. It's a form of data manipulation used in .net.
    My advice is use SQL express all the way.You could learn sql language that way also, that is a very important asset.You are in no way binded to use DAL.I usually have standard sql calling with heavy store proceduring in the database.
    I wouldn't,however, discourage you from learning about XML because in my mind the 2 most important things for someone working with data is data software-language(sql,oracle,mysql....) and xml that is used widely in internet but of course if you look at the datasets in DAL they use xml(,xsd) also.
    Access is something i am always trying to avoid when possible.If there is an option, don't use it.

    Edit.Sql express is about 50-60mb.Simplest solution,yes probably xml but i explained why is better to use sql.If you start adding more and more specs to your application xml becomes harder to maintain.
    Last edited by sapator; May 15th, 2010 at 01:16 PM.
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width