Mobile-friendly sidenotes, and distance estimation with milliradians
We learn how to make mobile-friendly sidenotes without requiring JavaScript (though requiring some HTML templating.) We also learn to estimate distances with no external tools but our hands and a little mental arithmetic!
Hello! I hope your week is going well.
New articles
Sidenotes, Footnotes, Inlinenotes
I have had so many questions on how the sidenotes on Entropic Thoughts work. This is a brief description that ought to be enough to get the interested going.
Full article (2–4 minute read): Reading GHC Errors
Flashcard of the week
Here's a neat trick!
If a width downrange is estimated to be roughly 50 metres long, and its subtension is 60 milliradians, how far away is it?
This might describe a situation where we are looking at a road far away at a right angle – the distance between full-size street lights is typically 50 m (at least where I live). We can estimate the subtension by holding up our hand at arms length from our face. Each knuckle is roughly 30 milliradians.
It is around 800 m from us.
The underlying relationship here is width downrange in metres = subtension in milliradians × distance in kilometres
. That relationship is not exact, but for subtensions that are small enough to be measured in milliradians the inaccuracies are smaller than those introduced during estimation.
Toying with a few examples of this also helps get a good grip for why radians are a fundamental unit of angle! If we measure both width downrange and distance in the same unit, the relationship holds true for radians rather than milliradians. And it's only true approximately because the object is tangent to a circle but we are pretending it is an arc length. This is fine for small angles.
Premium newsletter
The next premium newsletter is in the making! It will contain the usual, and a review of Code That Fits in Your Head: Heuristics for Software Engineering. If you're interested, a premium subscription is currently only $2/month, cancelable at any time, no questions asked.
That money also gets you the past issues, including the most recent one, which has a list of the 20 best books I've read, along with brief summaries, and pointers on how to make such a list of your own. (It's harder than it sounds.)
To upgrade, click the subscription link at the top of this newsletter and fill in your email again.
Your opinions
I cannot improve without feedback. Reply to this email to share your thoughts on any of the topics above, or anything else!Hello! I hope your week is going well.