I'm at school. They're teaching MS Active Directory stuff. I'm just thinking, "poor samba team." It must be disappointing for the developers that they havn't even got the NT PDC stuff done, and it'sobsolete now because lots of people are going to be moving to the AD stuff. Somehow, I think that it wouldbe more worthwhile to design some filesharing thing from scratch to compete with Windows based networking. Oh well.
More rewriting of the driving school testing program was done this weekend. I should have the main 'exam' object done soon.
The program is to be run via a web page. There's 1 class/object called Exam, which keeps the state of the exam (answers, questions, notes, state, time left, etc). It has some functions for beginning the exam, for scoring, for answering a question, for pulling various data out of a database, etc.
The design issues which the rewrite are intended to clarify are mainly error handling, and increasing ease of modification. It was my first project written in an OO fassion. Instead of using seperate files/pages (.php files) for each task/command, I wrote a 'conductor' object to take commands from the url, and do what needs to be done for each command. This sorta made the program ugly, hard to keep track of. Also, I have a template object for building a page. If there was an error in a called function, I was calling the renderError function in the page template instead of just returning an error and letting the client function deal with it. So this time, I'm writing each 'command' on it's own page and errors are returned as -1 by functions. Also, I'm passing an errorCode variable in reference to functions to let them return detailed error info. Hopefully this should improve things.
If anyone can tell me better ways of doing this stuff, feel free to tell me :) (email@example.com)
But, yah. Not much else going on.