Humorous

The Art of Computer Programming

Posted on: Mon, 15 Aug 2016 16:23 By: patrick

Here's a line of code that I recently sighted when I had to dig through ancient Excel VBA cruft at work:

Falsch = True

For German speakers: The code works because it uses a non-keyword (Falsch) as the variable name. For non-German speakers: "falsch" is German for "false", so the original code can be translated to:

False = True

After a moment of disbelief, I couldn't help but admire the amount of badness that is compressed into this single line of code - there is even a philosophical statement here! It's so fabulous that I consider it to be a real piece of computer programming art!

Article Styles

Another Dinosaur

Posted on: Sat, 14 Feb 2009 23:20 By: patrick

Today I learned that besides showing a few grey hairs, there may be other indicators that the years are creeping up on me. I had confidently opened my server's computer case with the intention to add a newly bought SATA hard disk drive to the system. With a gleam of triumph in the eye I connected the drive to the motherboard, using the extra SATA cable that I had remembered to buy along with the drive (hey, I know that the age of IDE has passed, even if some dinosaurs don't!). Then the revealing moment, when I wanted to connect the drive's power and realized that the expected Molex connector was not there...

Article Styles
Subscribe to Humorous