Today's Update - Still on Track
The trouble with writing something as big as this tournament thing is that each day is fairly similar to the last, and so thinking of ways to make my blog entry interesting gets a bit difficult. Fortunately the solution is quite simple - don't bother trying to make it interesting!
Today I've taken on board the suggestions of the extremely knowledgeable and experienced Rick and made it so that a tournament doesn't start until all seats are filled. The tournament's end date is then calculated by adding the tournament's specified duration to the current date. Simple.
Still to do is the tidying up of the tournament creation page - it's a right old mess (see attached picture). I think apart from that the starting of tournaments is sorted, but the ending of them is still a little bit tricky. I think there's going to have to be a script that runs every hour or so to check for tournaments that have passed their "end by" dates and sort everything out gracefully. Tricky but not totally unlike some other features of the site.
On a slightly happier note, the tournament pages are written with much better code than other pages. This is simply because I first started with PHP 10 months ago and so still improve all the time. Eventually the whole site will be gradually rewritten using better and faster code, though it will be one bit at a time I think (that's what I did to the chat system last month). I'm hopefully getting an excellent book on advanced PHP programming so that should be good!
Right, goodnight :)
Today I've taken on board the suggestions of the extremely knowledgeable and experienced Rick and made it so that a tournament doesn't start until all seats are filled. The tournament's end date is then calculated by adding the tournament's specified duration to the current date. Simple.
Still to do is the tidying up of the tournament creation page - it's a right old mess (see attached picture). I think apart from that the starting of tournaments is sorted, but the ending of them is still a little bit tricky. I think there's going to have to be a script that runs every hour or so to check for tournaments that have passed their "end by" dates and sort everything out gracefully. Tricky but not totally unlike some other features of the site.
On a slightly happier note, the tournament pages are written with much better code than other pages. This is simply because I first started with PHP 10 months ago and so still improve all the time. Eventually the whole site will be gradually rewritten using better and faster code, though it will be one bit at a time I think (that's what I did to the chat system last month). I'm hopefully getting an excellent book on advanced PHP programming so that should be good!
Right, goodnight :)

2 Comments:
At 1:37 pm, December 22, 2005,
rick said…
I think the tournament pages look pretty good,can't wait to get started.
You'll deserve a few extra days off after all this work.
At 11:18 pm, December 23, 2005,
Stephen Robson said…
Funny you should mention that because I just found out I get one and a half days LESS off than I thought! Better make the most of it all while I can :)
Post a Comment
<< Home