Classic funny comments
-
I was browsing imgur in a random mode on a shitter, when this popped up. Hello easy likes, here I come!
These are all classic, already circulated funnies, but there could be someone who hasn't seen them...
-
Per company policy you have been denied access to the URL: imgur.com
Sorry, no like from me.
-
Hey I get the same. Whee, fun, joy.
-
I put on my wizard hat and robe
-
I put on my wizard hat and robe
Why? So you can attack the darkness?/Watch out for the gazebos.
-
-
So far my favorite comment of the day was at the end of a ~120 line function, where it prepared to return the results of it's calculation...
// NOPE
return 0;Still not sure why not, but apparently NOPE.
-
I think there was a front page article like that:
// that's it! return;
-
I know the robe & wizard hat reference. Is there another level I missed?
-
I would perform the ancient ritual of "Relevant xkcd" (in this case, Monday's comic), but seeing as I only just got around to signing up to Discourse, I have been foiled in this endeavour.
Filed under: Hallowed are we, Hallowed are the Ori
-
I think there was a front page article like that:
// that's it! return; ```</blockquote> One I still remember from 20+ years ago. Device driver needed to disable interrupts around a critical section of code. H-1 visa developer wrote this comment: ```asm ; When needs must lights out
I still don't know what "When needs must" means.
-
-
Ok, that makes sense. Still, a comment along the lines of this would have been more useful:
; Disabling interrupts. Keep this section as short as possible, no more than N instructions, ; because Windows will crash if interrupts are disabled for more than X ms.
-
Obviously inspired by (multiple) xkcd:
[code]"""Dear future self,You're reading this docstring because you're wondering how the following regular expression works or why I did it like this.
Sorry, I don't know either.- ---- ___________________
;' )_ ___ / \ /Hey, what happened
| ```` \ .-. _/ |to my leopard? |
(| / ( )\ //-
| ________________/
-'.' "---' `---' _/ | (
----------------------- __| (
/ \ / <>/
| | |
"" "" """[/code]
-
Ok, that makes sense. Still, a comment along the lines of this would have been more useful
No doubt, but it's elegant because it expresses the concept (if you know the idiom) in fewer words.
I actually like the comment, probably because I already understood the idiom. If I didn't I'd probably agree with you.
And of course, your comment is actually technically superior because it's clearer.
-
I once saw a comment in a C switch statement (this was DOS code, so it was processing keyboard inputs). The default case comment (meaning the character typed was an invalid command) was "quit dickin' around".
-
According to this post, Discourse uses http://highlightjs.org/static/test.html for syntax highlighting, and according to that page, it supports x86asm. Sure doesn't look like it from that code block, even with explicit hinting.
-
your comment is actually technically superior because it's clearer.
And the bit about not having too many instructions in the critical section was important information that should have been documented at the point it was needed. We learned that the hard way.
-
I am also at the mercy of IT goons, so you get the like instead of @cartman82.
-
Agh, foiled by the internet filters! Curse you, corporate IT, you defied me for the last time!
-
Ok, Adria.
-
I know the robe & wizard hat reference. Is there another level I missed?
-
OK, then I'm not sure what you think wooshed, because like I said I was aware of that and countered reference with references...
-
Gazebos?
-
(Also see http://en.wikipedia.org/wiki/Eric_and_the_Dread_Gazebo; it is apparently embellished, though based on a real occurrence)
-
+1 for the Blackadder reference Baldrick!
"Needs must when the devil vomits into your kettle."
-
All the images are screenshots of text, namely source code, mostly comments.
Some of them are taken from http://stackoverflow.com/questions/184618/what-is-the-best-comment-in-source-code-you-have-ever-encountered
-
Just as a, you know, idea... since the entire slideshow is images of text, maybe you could have... just typed the text?
-
With all the different comment syntax, I'd kind of like to see how Discourse would render that.
Not enough to actually type them out of course...
-
Mine's worded slightly differently, but same type thing.
-
Just as a, you know, idea... since the entire slideshow is images of text, maybe you could have... just typed the text?
But you know, that would require some actual work, as opposed to just dropping a link and reaping that sweet sweet likes.
-
For those who cant see due to workplace policies (@chubertdev), or who just don't want to go through a slideshow (@blakeyrat), I give you this gift. Please note that I did my best to reproduce the originals, including typos.
// no comments for you // it was hard to write // so it should be hard to read
//When I wrote this, only God and I understood what I was doing //Now, only God knows
/* Halley's Comment */
// Abandon all hope you who need to debug this
/* Emits a 7-Hz tone for 10 seconds. True story: 7 Hz is the resonant frequency of a chicken's skull cavity. This was determined empirically in Australia, where a new factory generating 7-Hz tones was located too close to a chicken ranch: When the factory started up, all the chickens died. Your PC may not be able to emit a 7-Hz tone. */ main() { sound(7); delay(10000); nosound(); }
// Cabbage fart?
doRun.run(); // ... "a doo run run".
#Christmas tree initializer toConnect = [] toRead = [ ] toWrite = [ ] primes = [ ] responses = {} remaining = {}
long john; // silver
stop(); // Hammertime!
class Act //That's me!!! { }
const int TEN=10; // As if the value of 10 will fluctuate...
// //3.4 JeK My manager promised me a lap dance if I can fix this release //3.5 JeK Still waiting for that dance from my manager //3.6 JeK Me manager for changed, the new manager is hairy, don't want the dance //3.7 JeK Got that dance, yuk! //
What do you think you're doing, Dave?
*/ IF DOLPHINS ARE SO SMART, HOW COME THEY LIVE IN IGLOOS? */
// drunk, fix later
// The following strings are meant to be funny. Do not edit these strings // unless you are funny, too. If you don't know if you're funny, you're // not funny. If fewer than 2 people unrelated to you have told you that // you're funny, you're not funny.
// // Dear maintainer: // // Once you are done trying to 'optimize' this routine, // and have realized what a terrible mistake that was, // please increment the following counter as a warning // to the next guy: // // total_hours_wasted_here = 42 //
/* This isn't the right way to deal with this, but today is my last day, Ron just spilled coffee on my desk, and I'm hungry, so this will have to do... */ return 12; // 12 is my lucky number
last = first; /* Biblical reference */
long time; /* just seems that way */
// Magic. Do not touch.
'TODO: Matt Damon
/* * You may think you know what the following code does. * But you don't. Trust me. * Fiddle with it, and youll spend many a sleepless * night cursing the moment you thought youd be clever * enough to "optimize" the code below. * Now close this file and go play with something else. */
// If this code works, it was written by Paul DiLascia. If not, I don't know // who wrote it
/* Please work */
// These were originally up and down. When it was clear the names were // inapplicable, they were renamed to retain the joke. // Sorry if you were hoping for useful variable names. quantum strange, charm;
//Dear future me. Please forgive me. //I can't even begin to express how sorry I am.
// If this comment is removed the program will blow up
// TODO: Drive an ashen stake through the foul heart of this function.
// somedev1 - 6/7/02 Adding temporary tracking of Login screen // somedev2 - 5/22/07 Temporary my ass
// I don't know why I need this, but it stops the people being upside-down x = -x;
// I can't divide with zero, so I have to divide with something very similar result = number / 0.00000000000001;
/** * For the brave should who get this far: You are the chosen ones., * the valiant knights of programming who toil away, without rest, * fixing our most awful code. To you, true saviors, kings of men, * I say this: never gonna give you up, never gonna let you down, * never gonna run around and desert you. Never gonna make you cry, * never gonna say goodbye. Never Gonna tell a lie and hurt you */
Edit: fixed some of my typos
-
-
-
A lot more lulz can be found at http://c2.com/cgi/wiki?FunnyThingsSeenInSourceCodeAndDocumentation.