Use the title
attribute of links to give them descriptions (or “speaking names”, as you put it). If you do this, it is possible (easy, in fact) to configure a page’s CSS so that the link is displayed normally on the screen (without your long description breaking up the flow of text), but when the link is printed, the full title/description is inserted after the normal link text.
EDIT: I don’t know how to do this with LW’s draft.js editor, but in Markdown you do the following:
[link text](http://link_url.whatever.stuff "Link title attribute")
(In other words, put a space after the end of the URL, then the description in double quotes.)
Great suggestion! According to a StackOverflow answer, this CSS will do the trick:
a[href^="http://"]:after{
content: " (" attr(title) ") ";
}
Other reasons to do it include accessibility and letting people know whether they've already read the linked article without having to hover over the link to view its URL. However I sometimes still don't do it because of the costs, such as breaking up the flow of the text, making a comment seem more formal than I prefer, and just the effort of typing or copy/pasting the article title (especially on mobile).
I love this comment because you follow another common linking style that is distinct from the ones presented, the "punctuation style" where links are treated like footnotes or words or phrases.
I agree it's poor style to do links with words like "here" or "this article" and similar, but that also doesn't imply we have to put the names of things we are linking. I understand the argument for it, but it's often a style choice to use links as punctuation rather than like more traditional references.
where links are treated like footnotes or words or phrases
Unfortunately they are not rendered as footnotes when printed.
There is also a curse of knowledge issue. The author knows what is behind their link, how important it is, whether it is a reference or a definition or a "further reading". The reader has no idea. So the least I'm likely to do for any non-speaking link is hover over it to see what URL it points to. This wouldn't be necessary if the link were named with something close to the title of its target.
it's often a style choice
And it's best to choose a style that supports the function, right? I don't mind "punctuation style" in most ordinary blog posts. But it doesn't work for (semi-)scientific material that is likely to be printed. Especially by beginners like me. Maybe more advanced people can just tear through an article on, say, Benign model-free RL, but I need the aid of pages spread on my desk.
Unfortunately they are not rendered as footnotes when printed
This seems like a fault in the printing process.
If the author is optimizing for one reading format, and you want to convert it to another, and it's unsatisfactory in the new format, then perhaps the conversion process is what should be improved.
Good point. I experimented for ten minutes with saving the HTML, changing it and loading it again in the browser. But it doesn't work for LessWrong. The article appears briefly and then it switches to: ‘Sorry, we couldn't find what you were looking for.’ I didn't feel like figuring this out.
This is a bug in Vulcan, the framework we're built on; https://github.com/LessWrong2/Lesswrong2/issues/638 . We'll come up with a workaround at some point.
Thanks for the info! By the way, Markdown included the period after ‘638’ in the href
attribute. Also a bug?
without having to hover over the link to view its URL
Indeed, that's something I do all the time.
costs, such as breaking up the flow of the text
On the other hand it breaks the flow of the reading (on paper) if I have to open the article on my computer and find the link to hover over it.
the effort of typing or copy/pasting the article title (especially on mobile)
How much effort is this compared to the effort of all the readers who have to look up what is behind a link?
I prefer oppositely, to not break the flow of reading. Not to have a hypothetical vocalization of the text switch its moment-to-moment purpose to being a bibliography, let me compress to, "the author linked an article they claimed said shrimping was a fundamental drill for grappling", and move on. Often, I'd even prefer to leave out the "according to this article", and make the statement itself link text.
But there is a tradeoff between different readers. The "bad" version looks better to me for web readers, who are probably the vast majority. Maybe the writer should think about whether it actually is better, on a link-by-link basis, but I think that they will leave it alone. (Writers should also think about phone vs computer, especially if writing is on computer and reading is on phone.)
Here is a compromise: leave the text the same, but also collate a bibliography of works cited. This would provide a new benefit to web readers, while also providing a hint to print readers.
As others have said, one of the downsides of doing this is that adding a readable name interrupts the flow of the text. This is especially a problem if you're skimming the article, because the expanded text will catch your attention even if it's not a central point the article is trying to make. As for printing, I wonder what fraction of people actually do this, to see if the change is justified.
Bad:
Good:
Why is this important? So that people who print your articles know what you're referencing.
Why would anyone print an article? In order to be able to annotate it more easily, and to read with more context. Try it! Instead of scrolling back and forth in that complicated essay you're reading on a thirteen inch laptop, print it and spread six pages on the desk. I read many articles on AI alignment issues and printing them helps a lot.