Crazy ideas for book indexing

I'm looking through Apache access logs, trying to remember what HTTP code 301 is.

I have O'Reilly's HTTP: The Definitive Guide. I look in the index, and I see that 301 is aggregated with

300-399 status codes, 61-64, 502

Why not spell out all the codes?

301 status code, 61, 502
302 status code, 61, 502
303 status code, 62, 502

For that matter, why not have the index include the answer I want?

301 status code: Moved Permanently, 61, 502

I could have the answer right there, without having to go any further.

Further, the book has more than 600 pages, so I could even be able to look on page 301 and find out. It could have a footnote on the bottom of page 301 saying "301: Moved Permanently. Turn to pages 61-64, 502 for more information."

Alas, I think that Chris Shifflet's purple HTTP book is half the pages, so that wouldn't do there.

3 Comments

not to discourage better indexing of books, but for this /particular/ example, I still find myself doing

% ack 301 /usr/include/apache2/httpd.h
#define HTTP_MOVED_PERMANENTLY             301

(similarly with errnos, etc.)


Tom Wyant Author Profile Page said:

or perl -MHTTP::Status -E 'say status_message($ARGV[0])' 301

numberwhun Author Profile Page said:

I have to agree with you that condensing the ranges like they do is pure laziness and not useful when, like yourself, you are looking for what a specific code means.


If they didn't have it on hand, a quick google search would turn up the w3c page that contains all of them and their explanations.


Leave a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About this Entry

This page contains a single entry by Andy Lester published on July 10, 2008 4:54 PM.

Comment on PBP's recommended modules was the previous entry in this blog.

Devel::NYTProf will knock your socks off is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Other Perl Sites

Other Swell Blogs

  • geek2geek: An ongoing analysis of how geeks communicate, how we fail and how to fix it.
Technorati Profile