I don't like the hardcoding .
Look at the source of this page:
<link rel="shortcut icon" href="http://sstatic.net/so/favicon.ico" >
rel="shortcut icon" is good, but in the end probably fruitless. I don't like the hardcoding either, but we're stuck with it.
You can't put a <link> on a non-HTML object (such as directly viewing an image), or error pages you don't completely control. And sometimes browsers seem to fetch favicon anyway, ignoring the link. So your server error logs will continue to fill up with pointless 404 errors for /favicon.ico even if you do change the path.
Thank you, Microsoft, would it have been too much to ask to only request favicons from sites that include the link? And now we have the problem double, with Apple insisting on fetching /apple-touch-icon.png too, despite no indication that such a file might exist. You companies are rubbish. Rubbish I tell you!