Weeknotes 2024 W09: Keyboard cleaning

February 26​–​March 3, 2024
1400 words

Quick bits:


The only reliable way for me to make progress with my writing is to leave my apartment and head out. The Shut Up & Write meetups are particularly useful for those, though I don’t end up going there as often as I’d like.

I started a short story earlier this week, tentatively titled Friendship, though progress is slow. I daydream about the story often, though don’t make enough time in front of Scrivener to get the story into words.

Back when I was working full-time, I felt that I didn’t have the time or energy to do the amount of fiction writing I wanted to do. Now that I have time off from work, though, I still don’t have the time or energy. The problem is, I bet, in that I am not good at making time.


Out of the blue, I decided earlier this week to clean my mechanical keyboard. Good lord was it dirty. So dirty.

It was remarkably difficult to put it back together. I intuitively know the keys on a keyboard, but putting the keycaps back in the right spot was not at all trivial.

It also did not help that some of the keycaps have worn off completely. I could get replacement keycaps, but I don’t need them, and they’re an expense I can certainly do without. But still… I could get fancy colorful keycaps with special designs… I could… no, no… I must resist the temptation… aaahhhhhh.1

Cleaning my keyboard made me realize that there are other things I need to clean as well. Next up are my windows, I suppose. They are so dirty that I’m embarrassed to have visitors over.


I’ve been cleaning up the CSS for my web site, denisdefreyne.com, and moving further away from utility-first CSS. I wasn’t using Tailwind, but I had my home-grown utility-first library built with Sass.2

Overall, I am finding it much easier to stick to meaningful class names, like footer-links, rather than, oh I dunno, pb-3 lg:pb-4 c wtf it mw-50. The former is easier to understand and thus easier to maintain.

The only place where I find that utility classes are still useful is in spacing elements (with margins and paddings). The space around elements is often dependent on its context, and I found it difficult to encode that in CSS.

The amount of CSS has decreased, and the reduced size of the compiled CSS makes me level up in the 512KB Club. Not that it’s a competition, but… well, it really is a bit of a competition, is it not?

Removing so much of the CSS utility classes brings me closer to removing Sass, which in turn will enable me to use advanced modern CSS features like @layer, which I’ve really missed in Sass.


I’m making slow progress with the budgeting app prototype that I’ve been working on for ages now, though Swift and Xcode can be quite the pain occasionally:

It’s been taking some fun out of my hobby projects.


Do the hands of a clock ever line up at any other time than 12:00:00? That is what has been going through my mind as I see the time pass by on my iPhone when it’s in StandBy mode.

It is clear that the hour and minute hands line up eleven times per 12-hour period. But when they line up, does the second hand also line up?

  1. The first time all three hands meet up is at 12:00:00.

  2. The second time the hour and minute hands meet is just after 01:05:27. The hour and minute hands meet, but the second had does not (because 5 ≠ 27).

  3. The third time the hour and minute hands meet is at approximately 02:10:55. The hour and minute hands meet, but the second had does not (because 10 ≠ 55).

  4. Fourth time is at approximately 03:16:22. No match.

  5. Fifth time is at approximately 04:21:49. No match.

  6. Sixth time is 05:27:16.

And so on. Continuing this, it’s clear that the only time the hour, minute and second hands never meet up except at 12:00:00. So sad.

Now you know. Was this useful? Nope. Was interesting? Hell yes!


Entertainment:


Links:

Tech links:


  1. There is a mechanical keyboard store in Berlin, and I must go there avoid it at all costs. ↩︎

  2. I wrote about a similar process in Week­notes 2022 W08: Depleted. I think I had forgotten that I was working on moving away from utility-first CSS. ↩︎

  3. Stephen King, Doctor Sleep (New York: Scribner, 2013). ↩︎

  4. Stephen King, The Institute (Scribner, 2019). ↩︎

  5. Baldur’s Gate 3 (Larian Studios, 2023), published by Larian Studios. ↩︎

  6. Cory Doctorow, Attack surface (New York, NY: Tom Doherty Associates, 2021). ↩︎

You can reply to this weeknotes entry by email. I’d love to hear your thoughts!
If you like what I write, stick your email address below and subscribe. I send out my weeknotes every Sunday morning. Alternatively, subscribe to the web feed.