Poem: "User Interfaces"
Dec. 2nd, 2025 05:59 pm( Read more... )
Darren is supporting a Delphi application in the current decade. Which is certainly a situation to be in. He writes:
I keep trying to get out of doing maintenance on legacy Delphi applications, but they keep pulling me back in.
The bit of code Darren sends us isn't the largest WTF, but it's a funny mistake, and it's a funny mistake that's been sitting in the codebase for decades at this point. And as we all know, jokes only get funnier with age.
FileName := DestDir + ExtractFileName(FileName);
if FileExists(DestDir + ExtractFileName(FileName)) then
begin
...
end;
This code is inside of a module that copies a file from a remote server to the local host. It starts by sanitizing the FileName, using ExtractFileName to strip off any path components, and replace them with DestDir, storing the result in the FileName variable.
And they liked doing that so much, they go ahead and do it again in the if statement, repeating the exact same process.
Darren writes:
As Homer Simpson said "Lather, rinse, and repeat. Always repeat."
On a scale of one to ten, crickets or walnuts?
| 1 | 1 (5.0%) | |
|---|---|---|
| 2 | 1 (5.0%) | |
| 3 | 2 (10.0%) | |
| 4 | 0 (0.0%) | |
| 5 | 2 (10.0%) | |
| 6 | 3 (15.0%) | |
| 7 | 5 (25.0%) | |
| 8 | 1 (5.0%) | |
| 9 | 2 (10.0%) | |
| 10 | 3 (15.0%) |
GURPS prides itself on its realism for those who want to make that part of their games, and our beloved historical gear books – such as GURPS High-Tech and its spin-offs – have used untold actual weapon info and turned it into logical, consistent armament data for the gaming table. But what if you want details on a firearm that hasn't been converted into GURPS terms? What if you want to turn real-world data . . . into a weapon your hero can use?
"We usually imprint the inside with the material content, is that--"
"OUTSIDE, please. Stamp it on the outside."
"Outside?
"Yeah, it's for, uhhh, a friend named Baby Seal Leather."
Here's the original! Here's the chaser post!