Originally posted by Daniel Olson:
I am more familiar with databases too, and it may be the best way to do this project. However, I recently have started doing applications combining Java with XML and have been impressed with some of the things that combination enables a developer to do. Now everything I do I think, "Can I use XML for that?" When you have a hammer, everything looks like a nail.
For the class log project, XML seems to make sense to me because the amount of data that we would need to manipulate is small and a database seems overkill unless you already have a database setup and ready to plug into. Using XML would be very portable--no tables to set up and might only require three or four small files that could be put somewhere in the servlet folder.
I would be interested in helping with the project. Maybe we could do two versions (database and XML) and then discuss what features we like and don't like about each version.
I have been rewriting my examples so that they fit the Class Log project better. I should have time this weekend to finish and will send the examples. So far Johannes, Bill, and Marilyn are interested in seeing the examples.
Originally posted by bill bozeman:
Let's first hammer down what data we want and then go from there. The data may just be what Johannes put in his table, but there may be some other ideas we want to throw around.
Bill
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Originally posted by bill bozeman:
So here is the data that I am think:
1. First Name
2. Last Name
3. Current Assignment
4. Date of first submission (for current assignment)
5. Date of final submission (for current assignment)
6. Date of last submission
7. Number of attempts
Other possible things:
8. Date nitpicker sent last response
9. Name of nitpicker
10. Student's email address.
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
What is the difference between #5 and #6?
I think some of these items would be good for stats, but I'm not so sure about making everything public. It certainly would decrease flexibility.
I like you idea of doing the project in phases. However, what you have described should maybe be phase 2 instead of phase 1. We have an immediate need to replace what Johannes is doing with something that students can edit directly so that he does not have to take so much time doing the grunt work of changing the table everyday.
Are we planning on doing this as servlets? Is Java Ranch going to allow us to put some servlets on the site?
Bill, are you willing to be the project leader? I agree with Johannes that you are the logical choice.
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Personally, I would keep all the data in memory all the time and whenever somebody changes it, I would write it out as XML - and each time the program is started, read the whole thing in from the XML file
"I think a database would be overkill. Personally, I would keep all the data in memory all the time and whenever somebody changes it, I would write it out as XML - and each time the program is started, read the whole thing in from the XML file."
Originally posted by bill bozeman:
Let's do the XML solution. I have more to learn by doing it that way anyways. And we don't have to worry about trying to figure out how to set up the database.
When you have exhausted all possibilities, remember this: you haven't - Edison. Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|