news
Programming Leftovers
-
Chris ☛ Killed any mutants lately?
These days, nearly everyone has automated tests running in ci. It’s also popular to attempt to measure the effectiveness of the test suite, by seeing how well it covers the code under test. A low number for the measured test coverage means there is business logic that isn’t exercised by tests.
When people measure test coverage, they nearly always measure statement coverage or the more exhaustive branch coverage. Would you be surprised if I told you both are wrong? There is only one type of test coverage that tells us about gaps in the test suite, and it’s called mutation coverage. It’s rarely used.
-
Andy Bell ☛ Another Q&A with JavaScript for Everyone author, Mat Marquis
It’s been over a year since we last quizzed Mat after we launched JavaScript for Everyone. The course got a huge update this year, so we thought it would be a good idea to check in with him again.
-
Allen Pike ☛ The Curse of Six Logins
And while software can’t formally verify that we’ve chosen clear, unambiguous nouns for our domain, it can help us apply these terms consistently, and it can really help turn them into a state machine or other formalization. We all dream of a system where invalid states can’t be represented at all – even when Steve, desperate after having blown his weekly Claude limit on Fable, attempts to elicit a PR from wee Haiku.
-
AdventOfCode ☛ Day 1 - Advent of Code 2026
In this list, the three most common IDs are 76, 57, and 43. Surely, these are the IDs for the gizmos, contraptions, and apparatuses! (Multiplying these IDs together gives 186276.)
Analyze your list of IDs. What do you get if you multiply together the three IDs which appear most often?
-
R / R-Script
-
Ken Koon Wong ☛ Learning & Exploring Survival Analysis Part 2: Competing Risk Model - A Note To Myself | Everyday Is A School Day
In my previous survival analysis blog I left “learn competing risk analysis with Fine-Gray model” as a next step, so here we are! I’ve seen Fine-Gray in papers many times and honestly I just took the subdistribution hazard ratio as “the HR, but adjusted for death”. That turns out to be not quite right. 😅 I also thought the goal was to run Fine-Gray and check whether it “agrees” with the regular Cox model. Also not quite right. And when I was sure I understood how the cumulative incidence function treats a dead patient, I got the numerator and denominator backwards. 🤣 So these are truly messy notes. Now you know me, I’m the see it to believe kind of person, so let’s simulate data where we know the truth, run all the models, and see for ourselves what question Fine-Gray actually answers, and when reading it as a treatment effect goes wrong. Let’s go!
-
-
Java/Golang
-
Kevin McDonald ☛ Variable-Length Integers in Go
I ended up benchmarking six different integer encodings in Go. I was originally interested in the tradeoff between CPU time and wire size, but some of the results were pretty unexpected. For example, sorting the input before encoding it made some of the decoders run three times as fast.
-
Earthly ☛ Your build targets Java 21. Which JDK actually ran?
On November 17, Calif disclosed Java4Shell (CVE-2026-114938), a memory-corruption vulnerability in OpenJDK’s Base64 decoder. Oracle released Java updates the same day. For platform teams, the immediate question is which services actually run an affected Java Development Kit (JDK).
-
-
Rust
-
[Old] DEV Community ☛ Connecting to IRC with Halloy
Halloy is a new IRC client written in Rust that is fast with good theming. Here is how I set up a connection to an irc channel with Halloy and here is how to config Halloy for Rizon.
-
Tor ☛ Arti 2.9.0 released | The Tor Project
Arti is our ongoing project to create a next-generation Tor implementation in Rust. We're happy to announce the latest release, Arti 2.9.0.
-