156: Commented

Explain xkcd: It's 'cause you're dumb.
Revision as of 03:03, 22 January 2013 by Davidy22 (Talk | contribs)

Jump to: navigation, search
Commented
Your IDE's color may vary.
Title text: Your IDE's color may vary.

Explanation

In certain programming languages (including but not limited to C (since C99), C++, C#, Java, Javascript, PHP, and Scala), inserting a double slash (//) at the beginning of a line will "comment" that line out. This causes the computer to ignore that line when running the program.

An Integrated Development Environment (IDE for short) is an application that programmers use to write, compile, execute, and debug code. Many IDEs color-code text to make reading the code easier. In IDEs like Eclipse and Microsoft Visual Studio, a line that is commented out will be colored green, however the color may vary depending on which IDE you use, and can usually also be customized.

In this comic, BlackHat is ignoring Cueball's question by lifting two fingers towards him, forming a double slash. (It seems to me like Cueball at first thought that he was being flipped off, then realizes it's a different gesture).

Transcript

[Two men are talking.]
Cueball: Hey, can you do me a favor?
[Black Hat holds his hand out towards Cueball.]
Black Hat: Commented!
Cueball: Huh?
[Black Hat is holding his first and second fingers parallel and at an angle, and they are green. Cueball and his next line are also green.]
Cueball: Wait, what does that gesture even mean?
Comment.png add a comment!

Discussion

The issue date on this comic isn't filled. Can someone fix that by adding the correct issue date? Rikthoff (talk) 17:17, 3 August 2012 (EDT)

In the first two panels, it looks like he's flicking the guy off. It's not until the third panel that we actually see the subversion. I'm reasonably certain that this is intentional. 108.162.238.117 02:34, 31 October 2013 (UTC)

In QtCreator, comments are dark blue. Kaa-ching (talk) 08:32, 31 October 2013 (UTC)

I'm surprised that no-one has picked up on the fact that the text that is being commented out is multiple lines, but there is only one double slash, therefore only one of the lines can be commented out. For both to be commented, you'd need /* ... */ --141.101.99.218 09:03, 6 November 2013 (UTC)

The title text may also be a reference to the "Your milage may vary." commonly found in the fine print in car commercials. 108.162.216.19 22:28, 6 November 2013 (UTC)

I believe he's commenting out Cueball entirely, thus ignoring him and therefore any and all statements he may make. Notice in the last panel that it's not Cueball's question alone that is color-coded, but Cueball as well. 108.162.238.8 (talk) (please sign your comments with ~~~~)
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox

It seems you are using noscript, which is stopping our project wonderful ads from working. Explain xkcd uses ads to pay for bandwidth, and we manually approve all our advertisers, and our ads are restricted to unobtrusive images and slow animated GIFs. If you found this site helpful, please consider whitelisting us.

Want to advertise with us, or donate to us with Paypal or Bitcoin?