* * * * *

                              Navigating a blog

Over the past few hours I've been working on the navigation code for this
blog. And it isn't easy. I decided to forgoe adding navigation to the main
page (while it's easy enough to find the previous seven days worth of
entries, I don't think it's quite worth it yet to calculate the previous
seven days entries but that may change) or to arbitrary ranges (that was hard
enough to get right, and I still think there might be bugs in that code—not
show stopping bugs, but there are probably some marginal cases where the code
doesn't display what I think it should). I'm only handling the simple queries
that bring back either a year's worth, month's worth, day's worth or the
previous/next entry. Just to calculate the previous entry is a hundred lines
of code. I could probably tighten that up a bit, but I'm still getting a
handle on this, so I'll keep it verbose for now.


Email author at [email protected]