2020-12-20-gemini-links.html (5693B) - raw
1 <!-- title: Gemini's different approach to links --> 2 <!-- slug: gemini-links --> 3 <!-- categories: Miscellany --> 4 <!-- date: 2020-12-20T20:01:00Z --> 5 6 <p> 7 I have lately been reading many pages on <a href="https://gemini.circumlunar.space">Gemini</a>. 8 There has been a lot of interest around it on the blogs/microblogs I follow, which has lead to me 9 check it out as well. The project is very interesting, and if you have ever been interested in how 10 much bandwidth the current web wastes, the lack of privacy there is when we navigate it, the 11 constant security issues that come up with browsers, etc., I recommend you to take a look at the 12 project and read the FAQs. This post, however, is not about the Gemini protocol, but about how the 13 <code>text/gemini</code> media type handles links in comparison to HTML.</p> 14 <!-- /p --> 15 16 <p> 17 <code>text/gemini</code> is a very lightweight markup format. It only allows text, headers, 18 sub-headers, sub-sub-headers, preformatted text, unordered lists, quotes, and links. As you can 19 see, it has a (small) subset of the functionality of other hypertext formats such as HTML, 20 Markdown or org-mode. On top of that, links have to be on their own line, and you can optionally 21 give them a title. If I wanted to link to the Gemini homepage as I did in the last paragraph using 22 <code>text/gemini</code>, it would have to be in its own line:</p> 23 <!-- /p --> 24 25 <ul> 26 <li><a href="https://gemini.circumlunar.space">Project Gemini</a></li> 27 </ul> 28 29 <p> 30 That sounds very inconvenient, right? Why not just put the link inside the paragraph like in HTML? 31 I have found this way of linking a lot more pleasant when reading articles, and that's the reason 32 for this post.</p> 33 <!-- /p --> 34 35 <p> 36 When links are in the middle of text, sometimes you click on them while reading—maybe even before 37 you've finished reading the sentence! Even if you don't, they are distracting, you will probably 38 have to make a mental note: read the link once done with the paragraph, or you'll have to think: 39 is this link worth it? To decide whether to do the mental note in the first place. If you don't do 40 this, then you probably rescan the whole paragraph for links you have ignored (or just ignore 41 links altogether). By having the links at the end of the paragraph, you won't get distracted in 42 the middle of your reading, and you won't have to rescan for ignored links.</p> 43 <!-- /p --> 44 45 <p> 46 Aside from that, HTML links don't take up any space, they merely decorate a word that was already 47 there, while in <code>text/gemini</code> they take up a line of text, which means authors will 48 probably think twice before linking to 5 different websites that don't provide any useful 49 knowledge to the reader. But even if that doesn't stop them, now links have titles, which means 50 the visitor knows what the link is about before clicking it. That is a nice feature because it 51 makes it easy to ignore anything you are not interested in. If the author doesn't specify the 52 title, the URL will be shown in its place, and that already gives a lot of information. I know 53 that in most browsers, you can hover over a link to see the URL, but you have to reach for the 54 mouse to do it (and it is even harder to see the URL when on a phone or tablet).</p> 55 <!-- /p --> 56 57 <p><em>But the words with HTML links already tell what the link is about!</em></p> 58 59 <p> 60 Not always. For example, let's look at the start of the post, where the word Gemini links 61 somewhere. Three options of possible links come to mind: I'm linking to the homepage of the 62 project, the Wikipedia page (or some other wiki), or a previous post where I talk about how I've 63 been using Gemini lately. Two types of readers also come to mind: someone that doesn't know what 64 Gemini is (interested to click if it's one of the first two options) or someone that knows about 65 Gemini, but is curious about others' experience with it (interested only in the last link). So 66 it's not only about whether the link is useful or not but also about the particular visitor. 67 However, if at the end of the paragraph there was a line with one of the following texts, it is 68 obvious for the reader what kind of content the link is pointing to.</p> 69 <!-- /p --> 70 71 <ul> 72 <li>Project Gemini</li> 73 <li>Gemini — Wikipedia</li> 74 <li>Why I started using Gemini — Oscar Benedito</li> 75 </ul> 76 77 <p> 78 Two notes: this way of writing titles is the one I follow for HTML's <code>a</code> tags' 79 <code>title</code> attribute, but other authors will do them differently. Also, the correct way to 80 link to a blog post would be to link using the whole sentence ("I have lately been reading many 81 pages on Gemini"), but not everyone does it.</p> 82 <!-- /p --> 83 84 <h2>Final thoughts</h2> 85 86 <p> 87 When first reading about links in <code>text/gemini</code> I thought they were too limiting, but 88 they turned out to be quite nice. Don't get me wrong, links inside text can be very useful, 89 especially considering that the web is not only made of large articles but, for this particular 90 type of webpage, I find Gemini's approach better. This also made me realize how distracting links 91 can be, and I am now trying to reduce the amounts of links to a minimum, as well as footnotes, to 92 reduce the distractions caused by them. For now, I will still use links the "HTML way" because 93 this blog is hosted on the world wide web, but I might change my mind in the future.</p> 94 <!-- /p --> 95 96 <p> 97 On another note, if Gemini sounds interesting, check out the 98 <a href="https://gemini.circumlunar.space/docs/specification.html">specification</a>, it is easy 99 to read and the approach is very interesting.</p> 100 <!-- /p -->