↓Skip to main content

Week Notes 2026.07

·7 mins

Small Web #

I mentioned to one of my colleagues that, despite the AI slop prevalent on large platforms like Facebook and LinkedIn, the small web is alive and well. By small web, I mean small independent websites, authored by humans, that you can subscribe to with an RSS reader. See also IndieWeb which expands on these ideas.

They asked how I find interesting blogs to follow, and a few thoughts sprung to mind. The first is “Planet” aggregator sites which pull together posts from blogs on a common topic; I’m following:

You can subscribe either to an aggregate feed from the planet or to individual blogs you discover there.

There are also web rings like the System Crafters web ring and the shring ring of unix-y personal websites.

Finally, Kagi Small Web is worth a look.

I’m using yarr to follow feeds. This is a small Go web app that I self-host and expose via a Tailscale VPN, enabling me to read feeds from both desktop and mobile devices.

If I just wanted a desktop application, I’d probably try the elfeed package for Emacs, but if Emacs is not your cup of tea there are also TUI applications like goread.

If you want something web based but don’t want to host your own, I think The Old Reader is a good option.

Is he slow? #

The latest Golang Weekly newsletter pointed me at an interesting article about code complexity and boilerplate in different programming languages. The author wanted to compare how much boilerplate there is in Rust compared to Go (they rank about the same) but the thing that struck me was that the two languages with the least boilerplate (according to his measure) were Clojure and Haskell. Maybe it should come as no surprise that functional languages turn out to be the most expressive.

The tool he used for the code analysis is scc, and I thought it might be interesting to run this over a project I’ve been working on for the last couple of months. My managers have been complaining that it’s taking too long and are accusing my team of being too slow, but I think this just demonstrates that they don’t have a very good grasp of the complexity of the task at hand. Here’s what scc makes of it:

Language Files Lines Blank Comment Code Complexity Bytes Uloc
Go 59 9899 1175 516 8208 914 301850 3602
Terraform 50 2728 239 761 1728 82 77341 1160
YAML 30 1920 124 38 1758 0 85128 238
Markdown 15 622 207 0 415 0 31300 246
Shell 4 24 8 4 12 0 616 5
Python 2 171 31 3 137 7 4704 100
JSON 1 1098 1 0 1097 0 32240 233
Total 161 16462 1785 1322 13355 1003 533179 5565
Estimated Cost to Develop (organic) $410,696
Estimated Schedule Effort (organic) 9.81 months
Estimated People Required (organic) 3.72

These organic estimates don’t make much sense to me: I’ve spent about 20 working days on the code included in this analysis, and a colleague who’s learning go has spent maybe 3 days. I know counting lines of code is not a good way to measure efficiency, but I think the table still gives a good idea of the complexity of the system.

Incidentally, the go code has a ratio of about 2:1 tests to implementation to achieve approximately 80% code coverage for the unit tests.

Why I don’t AI #

I’m not going to focus on the environmental or ethical concerns around AI here (I’ll leave that for some other time), just on the practical concerns from the point of view of a developer.

The main reason I don’t use AI in my work is that I like programming! If I made heavy use of AI code generation, my job would change from programming to code review, and code review is a much more difficult job. To review code, you have to understand the underlying problem the code is solving and work through somebody (or, in the case of AI, something) else’s approach to the solution.

This has been at the front of my mind recently because there’s a faction at work who have been drinking the Kool-AId and are suggesting more of us should use AI “to improve efficiency.” For me, this is a non sequitur: I don’t believe it would make me more efficient. I would still need to get a good understanding of the problem at hand (that’s the case with or without an AI assistant) but, instead of expressing the solution in a precise language that’s already understood by the computer, I’d have to describe the problem in natural language for the AI agent to interpret.

Let’s look at an example of this. Going back to the article I quoted above, the author there used an AI agent to generate the script to drive the scc analysis, and they have helpfully shared the prompt they used. It looks like this:

I need a Python script.

It is going to do the following. Accept an argument to a directory. Look through
that directory for .md markdown files. It needs to extract the name of the file
minus the extension, so `java.md` would become `java`. It then opens each file
and looks through each line to find github repositories, the format looks like
this,

| 1 | [JavaGuide](https://github.com/Snailclimb/JavaGuide) | 153711 | 46107 | Java | 74 | Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发与系统设计。准备后端技术面试,首选 JavaGuide! | 2026-01-31T15:55:16Z |
| 2 | [hello-algo](https://github.com/krahets/hello-algo) | 122078 | 14820 | Java | 6 | 《Hello 算法》:动画图解、一键运行的数据结构与算法教程。支持简中、繁中、English、日本語,提供 Python, Java, C++, C, C#, JS, Go, Swift, Rust, Ruby, Kotlin, TS, Dart 等代码实现 | 2026-01-23T10:40:44Z |

It extracts each https link to the repository, and adds .git on the end and
saves it to a list.

Once done we then iterate the list doing a few things things.

1. Run a shell command out to git to clone the repository using a shallow clone.
   It should happen in the /tmp/ directory.
2. Run the scc tool (its installed globally) with arguments `scc -u -a --format
   sql | sqlite3 ../ code.db` On the first run it should run `sql` then after
   run `sql-insert` . We should change to the directory first so we run at its
   root, but redirect the output one down so it remains
3. Clean up the directory cloned by deleting it

It should then exit the program.

I make that 1,624 characters. Let’s see what that would look like as a shell script:

DB="${PWD}/code.db"
FORMAT=sql
find . -name \*.md | while read FILE_NAME; do
  BASE_NAME=$(basename ${FILE_NAME} .md)
  perl -nle 'm|\((https://github.com/[^)]+)\)| && print $1' ${FILE_NAME} | while read GIT_URL; do
    TMP_DIR=$(mktemp -d)
    git clone --depth 1 ${GIT_URL}.git ${TMP_DIR}/target
    pushd ${TMP_DIR}/target
    scc -u -a --format ${FORMAT} | sqlite3 ${DB}
    FORMAT=sql-insert
    popd
    rm -rf ${TMP_DIR}
  done
done

That’s 441 characters - a 75% reduction in typing and about the same cognitive overhead. It does exactly what it needs to do! We can also see that BASE_NAME is never used so we could drop that line of code—this was not so obvious in the natural language verbiage.

This reminds me of something else I read this week (paraphrased and unattributed as I don’t remember the source):

AI is useful: it enables people who never learned how to use their computer to get it to do something for them by asking it in natural language — and sometimes it will work.

I don’t mean to suggest that my colleagues haven’t learned how to use their computers, but maybe there’s more value to AI agents in tackling a problem you don’t know how to solve. I think, even in those circumstances, I would be reluctant to use AI: if I don’t know the problem/technology, I would not be well-placed to review the AI output for accuracy and security.

Listening #