Order Up
by in Error'd on 2026-12-04
"It looks like Infoq has run out of Open AI credits!" announces Mark S.
"It looks like Infoq has run out of Open AI credits!" announces Mark S.
Janet works for a smallish accounting firm, and that means that she's got the unenviable massively parallel hat situation. Janet whips up simple custom software to streamline operations, writes loads of scripts, and does network and desktop support. From time to time, she's even been called upon to unclog toilets and mail the boss's Christmas cards out.
One day, while Janet was in the break room, she overheard some of the staff discussing a morning talk show they'd watched.
Dmytro P works with one of those developers who clearly started life in C/C++, and has never quite adapted to languages like Java. How can I tell?
Well, functions like this are a good hint:
In the corporate world, where there's smoke, there's a huge raging dumpster fire. From our submitter George:
Not all that long ago I was hired by a company that made and sold PostScript fonts. Their fonts had, for years, been crashing computers randomly. I knew a bit about PostScript, so a marriage made in heaven, right? Well, no.
Jon has a team mate that has a coding quirk. They tend to write this pattern a lot.
switch (someEnum)
{
case EnumType::TargetValue: doStuff(); break;
default: doOtherStuff();
}
Uncharacteristically, I will be earnest for a moment. The holiday season can be a difficult time for many people, for many reasons that are beyond the scope of this column except for the fact that most of them are also wtfs. If you're one of those, stick around, because there are a lot of us here. And with that, on to BJH, who's a little behind.
B.J. H. reflects "Have there been any changes in my life in the last 55 years that could cause depression, other than the creation of the Internet?" I can think of a few but that's definitely on the list.
It's a holiday in the US, where we give thanks. Specifically, we give thanks that we're not working with the person responsible for this. Original --Remy
The Quine – i.e., a program that produces its own source code as output – lives in the esoteric realm of computing and computer science. It’s almost entirely useless, but usually pretty fun. The Quine Programmer, on the other hand, is among the pantheon of programming gods, sitting between The Great Abstractor and The PHP God.
The Quine Programmer has the uncanny gifts of being infinitely good at programming and infinitely insightful, thus allowing him to write a program to replace himself and all other programmers. The output of The Quine Programmer is system that’s fully configurable by the end-user; should the end-user want something changed, she can simply change it herself.
David came across some Java code. This particular block needed to, based on an integer masquerading as an enumerated type, return an amount of time to sleep. It has strong opinions about what should happen when you send it an invalid value:
private static int getTime(int mode) {
return switch (mode) {
case 0 -> 30 * SECOND;
case 1 -> 15 * SECOND;
case 2 -> 10 * SECOND;
case 3 -> 20 * SECOND;
case 4 -> 17 * SECOND;
case 5 -> 32 * SECOND;
default ->
// go to hell
1000000000;
};
}