2024-11-21 03:00:00
When my site analytics reported a large number of inbound traffic from Hacker News clones, I got curious and started clicking links.[1]
I like to visit links. I am connoisseur of it. I love the feeling of landing on something you didn’t expect — which is precisely what happened.
I landed on a site that had one of those Cloudflare-esque “prove you're human” captchas. That didn’t seem particularly abnormal. Lots of website owners these days use them for protection against malicious activities like DDoS attacks.
Anyhow, the page had a little graphic that said: “Press ‘Allow' to prove you are not a robot.”
I sat there for a moment looking for a button, but couldn’t find one. “Where’s the “Allow” button?” I thought.
A few seconds later, Safari’s native permission dialog popped up asking for permission to send me notifications!
I immediately thought, “Ah, hell no!” and ran away from that website. That’s sneaky, leveraging tools site owners use to protect themselves — and therefore normalize for their users — as a weapon.
I hate this crap.
But one of the beautiful things about browser security is that a lot of people work really hard to make visiting any website in the world safe. Granted there are caveats to this statement, but it’s cool you can mostly sleep at night doing a GET to any domain. (Whereas, for example, it is very much not safe to install any package in the world from npm.) That’s great news for link hoppers like me.
THANK YOU browser makers!
Reply via: Email :: Mastodon :: Twitter
Tagged in: #grateful
2024-11-19 03:00:00
I think it’s endearing when people name their blog.
I’m not talking about branding, like people do with professional blogs or newsletters.
I’m talking about personal blogs that people name out of care and idiosyncrasy.
It’s endearing, because you brand things you own, you name things you cherish.
We didn’t brand our family cat. And we don’t call him “The Nielsen’s cat” (though that’s probably what our neighbors call him). We named him. We call him “Fluffy”.
Don’t get me wrong, I like how personal it is when a personal blog is just someone’s name (that’s what mine is).
But I also love when folks add a little name or subtitle to communicate their personal feelings about their blog, e.g. “Little nothings: the blog of so-and-so”.
Here’s a few examples out in the wild of people I follow:
My sister had a blog for a long time — though sadly not anymore [insert comment here from old man yelling at cloud about the demise of blogging in the wider public].
I can’t remember the name of her blog, but the subtitle was “tasting life twice; in the moment and in retrospection” which was a nod to Anaïs Nin. I think about that quote probably once a year — I love stuff like that!
Yeah, I know, I’m one to talk. My blog is titled “Jim Nielsen’s Blog” which, hey, at least it’s clear. Maybe I’d name it if I could land on a name I like, but I’m a fickle namer so don’t hold your breath. Perhaps I could start with a subtitle first, something like:
Oooof. Maybe I better leave this art to others.
You have a blog you follow whose name you love? Let me know — or even better, blog about it!
2024-11-16 03:00:00
Why do we write?
We write, in part, because our own reading was given as a gift to us and we want to extend that same magic we received to others. Here’s Mandy Brown (and my notes) in a recent article:
The more compelling and interesting reason that most writers seek out readers is, I think, less utilitarian: we receive our writing as a gift, and so it must be given in turn. We write because something needs to be expressed through us, and only by giving the writing to a reader is that need fulfilled
You write because something needs to be expressed through you, which is something nobody else in the world can do.
(Contrast this with writing that is expressed through an LLM that everyone else in the world has access to.)
By giving our writing to a reader its is purpose fulfilled.
In other words, reading and writing has traditionally been an act that takes place in the context of people. Its purpose is fulfilled through humans. AI bots could read and write to each other all day long, and what is being “fulfilled” in that scenario?
Reading and writing is for expression and connection between humans. Its purpose is fulfilled in that context. Anything other than this and it is purposeless; that is, done in a way that violates the reason for its existence in the first place.
Does that make sense? I’m trying to make sense of it myself. Maybe there’s something here — maybe not. But Mandy’s piece got me thinking.
Reading and writing is a human-centric exercise because it deals with the interpretation, exchange, and expression of consciousness which is an attribute that machines do not possess — “yet” some will say, and to that I say “lol”.
2024-11-14 03:00:00
Jan Miksovsky has an absolutely tremendous article about how he cobbled together some disparate pieces of hardware and software in order to help improve the quality of life of his mother who has amnesia.
Everything about this article illustrates what got me into making websites.
Everything about this article is what fuels my curiosity and interest in continuing to make boring little websites.
But first, a quick overview of Jan’s story. First, the problem:
the side-effects of a long surgery left my mom with permanent anterograde amnesia…[she] still lives on her own in an apartment. Because she cannot remember things, she goes through each day in a state of low-grade anxiety about where her grown children are and whether they are all right.
To help alleviate this, he dreamed up a solution:
I thought some sort of unobtrusive, always-on device installed in her apartment might be able to show her notes written by my siblings and me.
But technological solutions are famously fickle and rarely easy. How do you introduce a new device into someone’s life when you can’t teach them how to use it because their mind is incapable of remembering?
Not easy stuff. But Jan’s imposed set of constraints on any solution are a great start. The solution has to be:
resilient to network failures
not enshittified with a subscription service or proprietary App Store
He gives insights into the technical details:
Since it’s essentially impossible to debug anything that happens on the device, I made as much use of vanilla HTML and CSS as possible.
Boring is good! Even the “backend” where the family posts notes sounds like just an absolutely lovely little website:
A small web app manifest lets us save the Compose page to a phone’s home screen as an icon for quick access.
The whole site is tiny, entails no build process, and with the exception of the service (below) is just static files.
Jan’s retrospective is wonderful from the human side:
Looking back, the display is essentially the only intervention of any kind we’ve tried that’s actually been successful at improving her quality of life (and ours). One reason it’s worked so well is that it didn’t require her to learn anything new. Without the ability to remember new things, it’s virtually impossible for her to learn a new skill or to form new habits.
And the technical retrospective is wonderful as well:
For my part, keeping the software as simple as possible and sticking to vanilla web technologies surely helped avoid bugs.
It reminds me of the early years of the web, when nobody quite knew what was possible with all this web stuff. If you knew enough about how to patch things together on this big open standard, you could do some pretty magical things for people.
Not magical in the sense of “Hey, I think I uncovered something that I can generalize into a product and then provide as a service to the entire world” — though there was plenty of that coming out of the early days of the web.
But magical more like the way a great cook would improvise a meal for a small group of hungry people based on their needs and what was available in the pantry at the moment.
That magic of using your digital fluency to scrappily cobble together some disparate technologies in service of helping solve the unique problem of an individual loved one or friend. No scale. No monetization. No buzzwords. No grand upside potentiality.
Just building cool shit for people you love on the ethos of an open platform.
2024-11-12 03:00:00
When trying to define the difference between a link (<a>
) and a button (<button>
), a general rule of thumb is: links are for navigation, buttons are not.
That can take you pretty far. However, like most things, there’s nuance and that mental model can fall apart under certain scenarios.
Why? Because buttons can be for navigation too.
Where? Buttons in forms trigger navigations by default (without JS).
Maybe I’m showing my naivety when I say this, but it took me a while to fully grok this idea. But doing so helped me change how I think about the basic grain of building for the web.
When it comes to browser APIs, I love to ask myself: How does this thing work, at its most basic level, without JavaScript?
And a <button type=submit>
inside a <form>
is, by default, a navigation.
For example, if you click “GO” here:
<form action="https://google.com">
<button type="submit">GO</button>
</form>
The browser will navigate you to the same page as if you click “GO” here:
<a href="https://google.com">GO</a>
Both of those are what I would call “navigations”. Without JS, they trigger a round-trip request to the server for a new document and navigate the user to this new location.
To reiterate: a button inside a form, like a link, triggers a round-trip request to the server for a new document — a navigation.
So links aren’t the only mechanism for navigations, buttons are too! Or, perhaps more accurately, forms are a mechanism for navigations and buttons inside of them are navigation triggers.
As another illustration, imaging making a multiple-choice quiz. Each question is its own HTML page. You can mark that up in two different ways.
Option 1: a form + a button.
<form action='/questions/1/'>
<label><input type=radio name=answer value=a /> A</label>
<label><input type=radio name=answer value=b /> B</label>
<label><input type=radio name=answer value=c /> C</label>
<label><input type=radio name=answer value=d /> D</label>
<button type=submit>Submit</button>
</form>
Given the attributes of this form, when the user clicks the “Submit” button, the browser will navigate them to a new page such as:
/questions/1/?answer=a
You can achieve this exact same functionality with links:
<ul>
<li><a href="/questions/1?answer=a">A</a></li>
<li><a href="/questions/1?answer=b">B</a></li>
<li><a href="/questions/1?answer=c">C</a></li>
<li><a href="/questions/1?answer=d">D</a></li>
</ul>
In both cases, a “navigation” happens by default.
I write this because understanding form submissions (triggered by buttons) as navigations became an empowering idea for me in building for the web.
Maybe it will for you too.
Reply via: Email :: Mastodon :: Twitter
Tagged in: #webPlatform