I recently read a funny blog post on things learned way too late in life. While there are certainly no shortage of such things to share, I have found some of my biggest "woah" moments in the last few years to be in the world of computers. Being pretty new to the field and largely self-taught, I consistently have the bittersweet experience of noticing a glaring blindspot and the lightbulb moment once the gap is filled in.
One of these unintuitive blind spots for me had to do with reading URLs. As an example, let's take the URL of this web page as an example:
If you are at all literate in English, you tend to read from left to right. Thus, I would have interpreted the URL as, "Some mumbo-jumbo colon-slash-slash, then the mashsmusings site which has something to do with the org neocities, then reading a specific post within 'posts'." While the left-to-right heuristic is great 99% of time, it unfortunately doesn't work when reading your favorite waifu manga and, confusingly, only mostly works for reading URLs. To see what I mean, let's dig into the different components of our URL.
https://mashsmusings.neocities.org/posts/how-to-read-a-url.html <------><------------------------><-----><--------------------> 1 2 3 4
Putting this all together gives a more illuminating interpretation than the one prior. Now the same URL can be interpreted as "Using the HTTPS protocol, go to the server registered as 'mashsmusings', a subdomain of 'neocities', a subdomain of 'org'; go to the posts folder, and get me the file called 'how-to-read-a-url.html'". Despite being an avid internet user since age 7, I never picked this up until I had to set up my own site — the more you know!
As a side note, learning about domain hierarchies being read right to left, made me wonder why most sites have the terminal subdomain "www". Turns out, it's completely pointless! Having a "www" subdomain was a legacy convention to specifying that your server was on the Worldwide web but over time, that convention has fallen away in favor of clearer, more concise domain names. Not everything has a good reason.