kidnapping a vibe coder in a van. locking him in a room. theres a laptop, it has no internet connection, no nodejs, no vscode. Only programming language installed is gcc, only text editor is vim. i tell him if he can make any kind of simple program im gonna let him out. after lots of struggle he finally gets it done and set him free, two month later she starts estrogen
There's a quirk in C where the cases of a switch statement can be wrapped in another control construct. A few years ago, I remember seeing an example of a piece of code that took advantage of this by wrapping the cases in a do-while loop as a way of (partially) unrolling the loop, but I'd forgotten what it was called, and couldn't seem to find it anywhere, despite searching many times.
It's called Duff's Device, and it's evil, and hideous, and brilliant, and I love it, and I'm so glad that I finally found it again.

