
This is an instance where I sincerely hope it was the work of an LLM, for the alternative is even more fearful: someone who knows just enough cryptography to be familiar with using primitives and is able to write code that compiles, but doesn’t actually understand one iota of the theory behind modes and constructions.
The thought of this person being somewhere out there, inexorably writing awful code but unlike an LLM has the free will to keep going. It gives me chills.



















I don’t disagree about bikes seemingly getting more complicated. But I’d counter that my 2023 ebike would immediately benefit if all the existing sensors were CAN: from the mid-drive motor+controller, I have the left and right brake sensors running to the front, plus the display, and the headlight power circuit. Branching off the display are the controls for the turning on the bike.
To the rear, I have the derailleur sensor, the speed sensor, and the taillight circuit. I’ve been meaning to also expose the brake light circuit, so that would be yet another set of wires.
If I had CAN bus today, I’d shrink the wiring down to just: two CAN wires and two power wires to the front, and two CAN wires and two power wires to the rear. All sensors on the front attach to the display. All sensors at the rear are wired as a chain, with the tail/brake lights being at the very end.
The ease of cable routing alone would be worth it. And perhaps those wires could then be armored, for improved resiliency.