Nov 5, 2014, 9:12 AM
Post #2 of 2
You have a lot of work to do before you start coding. Your solution will be much different depending on your requirements. As extreme examples, you could keep track of a few friend's email addresses with a simple text file. The personnel records of a large company would probably require a commercial data base. Both could be called "address book".
Re: [jaykneewang] Address Book Script
[In reply to]
Probably the most important decision you have to make is the size of your address book. (i.e. How many entries must it hold?) Estimate both an expected size and a max size. (It is acceptable for the program to break if the number of entries exceeds max) Design decisions based on these numbers will be hard to change. Get them right!
Next decide what data you must store. I assume that you book will be indexed by name. With each name, you will probably associate an email address, telephone number, and possible postal address.
What functions do you need? You will need maintenance functions to add an entry, delete an entry, and edit an existing entry. You may need the ability to import data from an existing address book. - specify. You will need a user function to search for a name and associated data. You may want to search other fields. Will your program be used by only one user on one computer? Providing network support is a major complication, but it would be even harder to try to add it later.
With this much information, we can start making fundamental design decisions such as the choice of data base. Then we can take up issues about how to format the data.