In this case, PHP code connecting to the database (circa PHP3 API) for every
request to calculated the link URL and link text for a link to the top level
page for the category the current story is in. This is an example of what
not to do and yet surprisingly, practices like this are prevalent!
In fact, content management systems that are in-process with the content
delivery systems encourage this sort of thing. The maintenance eliminated
by removing the hard coded category name is payed for in performance problems.
Reducing the maintenance is good, but this is the wrong way to acheive it.