Joel gets away with longish posts by illustrating with stories or being funny all he way through. There's nothing wrong with a bit of comic relief if it's relevant or if at least it doesn't distract you. The following joke bought Petzold another screenful's worth of my attention.
Here's some advice for successfully reading a book: You need to stay focused, so try to avoid distractions. Avoid multitasking. Avoid task switching. Turn off the TV. Shift positions occasionally so you don't get cramps or backaches. Don't get too comfortable or you might fall asleep. (Interestingly, many of these same rules apply to having sex, except that you can read a book with a cat in your lap.)
Then again, you need to be sure you can pull it off. There are few things as devastating to your writing as trying to be funny and failing (hi Yegge.)