Code Comment of the Week

HardOCP News

[H] News
Joined
Dec 31, 1969
Messages
0
Digging through the code for Xee, an image viewer for Mac OS X, you will find one of the best code comments ever. And I do mean “ever.” See for yourself, this is just part of it:

At this point, I'd like to take a moment to speak to you about the Adobe PSD format. PSD is not a good format. PSD is not even a bad format. Calling it such would be an insult to other bad formats, such as PCX or JPEG. No, PSD is an abysmal format. Having worked on this code for several weeks now, my hate for PSD has grown to a raging fire that burns with the fierce passion of a million suns.
 
That's just awesome! Definitely worth the click-through. I think a new art form has been created - Oppressed Geek Poetry.
 
Awesome. I also like that there's a sanity check immediately following the rant.
 
I always leave fun comments in my code, but since no one ever looks at it, im an unsung poet.
 
I've written more than a few mini rants in my code, usually about users doing something they aren't supposed to be doing. This was great though. I'll have to remember to do something like this next time I have to deal with an insanely difficult problem.
 
PSD is really old. That's why they stopped numbering photoshop software and stuck a CS on the name instead. It should really be called Photoshop 11.0. I regularly call it overpriced :p
 
Pretty good. I'm not a programmer, but even in my high school computer science classes I remember doing stuff like that (the teacher thought it was amusing). I do have a habit of going on long rants about stuff in my university notes, though, usually when a class is boring (but often just in-between other stuff), which always makes for entertaining reading come study time, or if a friend asks to see my notes.
 
I remember my sophomore year that I did something similar during an "exam" and my professor took 1 point away because he refused to give a 100 on it. It was well worth it to show it to my classmates and show them what he took a point off for.
 
I don't know what it is about Adobe, but it seems they want to piss people off. Their PDF-reader is constantly pissing me off so I've started to use foxit reader.
 
lol, it's not just PSD, it's all about Adobe's products. i'd pack all the instances of it and send it off into a black hole.
 
lol, it's not just PSD, it's all about Adobe's products. i'd pack all the instances of it and send it off into a black hole.

I think sending it into the Sun is safer. With a black hole, there's always the theoretical possibility that it could come out another end somewhere in the universe, and then some advanced alien lifeforms would have to suffer.
 
I think sending it into the Sun is safer. With a black hole, there's always the theoretical possibility that it could come out another end somewhere in the universe, and then some advanced alien lifeforms would have to suffer.

Maybe they could fix the code so that worked better.
 
That filled me with glee. Google needs to now index funny rants in their code files, and create a voting system so everyone can find the top 100 or so best rants. I know it'll never happen but that would be win.
 
LOL, I have some comments like that over the years, such as with Awk or Forth, truly strange languages.
 
Back
Top