SuperScript

Blog

Cognitive Load

Involve junior developers in architecture reviews. They will help you to identify the mentally demanding areas. Interesting thinking on modularity: Cognitive Load More material referenced there: Decomposition Criteria Contra Clean Code Some Ousterhout

fzf Plus rg

As stand-alone tools fzf and rg are very useful. And there is an example in the fzf docs showing how to toggle between fzf and rg, with the initial mode being rg. It works by feeding files (or standard input) to rg, and then making the list available to fzf for fuzzy match. When …

Locale for Sorting

Today I ran afoul of a problem that I first encountered over 20 years ago: non-portable sort. Back in the early aughts the symptom was that on Linux with a en_US.UTF-8 locale i < j < k did not hold in sort. This was on Linux. We worked around this by setting locale to C for…

Bhyve and Grub

In attempting to install linux (Debian in this case) under bhyve I sought out and followed the common guidance: use uefi and not grub. https://vermaden.wordpress.com/2023/08/18/freebsd-bhyve-virtualization/ https://forums.freebsd.org/threads/handbook-bhyve-linux-example.92193/ h…

Poll0

In a pipeline you may have one segment that must wait for input before executing. Think xargs but passing data through rather than using it as command-line arguments. Today I addressed this with a simple C program, called poll0. It polls file descriptor 0 and exits 0 if data is r…