This, the 257th edition of the WHV, covers the period of time from Monday November 25 to Sunday December 8, 2024.
Haskell vineyard has made previous appearances on this blog in WHV #99 in 2015, in WHV #181 in 2019 and perhaps in other posts. I strongly suspect that some of the good friends mentioned there were the same good friends we were so fortunate to spend this Sunday lunch with!
Why I’m definitely not taking part in Advent of Code 2024
I tried to explain The Advent of Code in WHV #211, back in December of 2020 when I took part for the first time.
An extract from that explanation pertinent to this discussion is:
To my non-programmer friends: Solving puzzles is like concentrated cat nip to programmers. In the case of AoC, you get unadulterated puzzle solving, and none of the other complications of writing production software.
The dark side of that property is that as the puzzles get more difficult and take up increasing amounts of time, the cat nip enjoyer can get locked in and have great difficulty even noticing that they are spending hours every day writing computer programmes when at first other people are working and later, down here, they are outside enjoying their summer vacation.
In 2020, I think it was on day 21 that I noticed after more than four hours on that day’s puzzle that it was probably time to put down the keyboard.
Since then I have been carefully enjoying the first few days of each year’s AoC, taking care to walk away when the cat nip becomes too strong.
This year I had resolved not to take part at all, as there are a number of important work projects and personal obligations to take care of.
However, my resolve broke on the first day when I thought “What could be the harm in just taking a little peek?”. That little peek led to a little solution, and then another, and then another day, and so on.
Anyways, as you can see from my #AdventOfCode tagged posts on Bluesky, I am not officially taking part, I’m just submitting solutions every day.
On a more serious note: I am happy not to miss out on the AoC loads of fun, especially the banter and comparisons and learning on various chat groups, but I am really trying to keep a critical eye on the daily time expense. If it gets out of hand, I will walk away from the programmer cat nip.
P.S. Today was particularly fun, precisely because I managed to squeeze the puzzle in between more important activities. The little rush when I submitted part 2’s solution minutes before we had to leave for lunch was exquisite.
Today I was planning on extra vigorously NOT taking part in AoC because it's Sunday: planning a long run followed by lunch with some of our best friends.
Plans all happened, but in between I completed "Resonant Collinearity" - Day 8 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/8
— Charl P. Botha | code, data-*, Emacs, running, humans (@charlbotha.com) December 8, 2024 at 3:59 PM
[image or embed]
WebP FTW
Back in 2020, friend Stéfan and I hacked and slashed together a Hugo shortcode to render srcset images.
In short, this adds multiple resolutions of each image in such a way that users download only what makes sense on their displays, often leading to faster page loading.
Fast forward 4 years as I try out WebP format images on this website (always for faster loading!) and run into a disappointingly long-standing bug in the Go standard library…
Another long story short, our figure shortcode can now work around this bug by displaying webp, but using png/jpg behind the scenes for all conversions, meaning most images should load faster for you.
The photo at the top of this post should have the WebP format, and thanks to srcset it should download lower resolution versions if you are on a smaller display.
Why I’m starting to write these more regularly in Hugo vs Orgmode
This is just a quick note to me, and perhaps others who occupy this same nanoscopic technical niche.
For the past few years, since May of 2020, I’ve been writing most of the WHV posts, and posts for my other blogs, in Emacs Orgmode, exporting them with the wonderful ox-hugo tool.
It made a great deal of sense to me (and it still does!) that my WHV entries were just entries in my monthly orgmode file.
However, sometimes when I go back to update a post from a few years back, some evolution in my orgmode configuration over the years complicates the orgmode to Hugo markdown process, and I’m relegated to debugging the issue before I can get down to the actual update.
A year or two back, to lessen the impact of this problem, I started creating standalone org files for the WHVs. Whilst this certainly reduces the error surface, it’s not as robust as editing the markdown directly, which I’m doing right now.
Thanks for coming to my TED talk.
On waiting
There’s no such thing as waiting – only unexpected extra time to practice being present. – Jan Chozen Bays
P.S. In American English, practice is used both as verb and as noun, unlike British English which uses practice as a noun, and practise as the verb. Dr Bays is American, so I’m keeping the spelling.