Editing 156: Commented

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 12: Line 12:
 
Cueball also fails to understand this, but as it turns out, as the panels move around Black Hat and zooms in on his fingers, he is not making this rude gesture, but is instead actually lifting two fingers toward [[Cueball]], forming a double slash and thereby ignoring both him and his question for a favor, by commenting him out programming style, even to the point where Black Hat sees the commenting out slashes, Cueball, and anything he says in the color for ignored parts of the program (or real world in this case).
 
Cueball also fails to understand this, but as it turns out, as the panels move around Black Hat and zooms in on his fingers, he is not making this rude gesture, but is instead actually lifting two fingers toward [[Cueball]], forming a double slash and thereby ignoring both him and his question for a favor, by commenting him out programming style, even to the point where Black Hat sees the commenting out slashes, Cueball, and anything he says in the color for ignored parts of the program (or real world in this case).
  
In certain {{w|Programming language|programming languages}} (including but not limited to C (since C99), C++, C#, Java, Javascript, PHP, and Scala), inserting a double slash (<code>//</code>) in a line marks everything after the double slash in the line as a "{{w|Comment (computer programming)|comment}}," i.e. something for humans to read that generally helps them understand the code better, rather than something for the computer to execute. Since all comment lines are ignored when a program is run or compiled, it is possible to simply put a double slash in front of any line of code to skip that line. This is known as "commenting out" the line. For example:
+
In certain {{w|Programming language|programming languages}} (including but not limited to C (since C99), C++, C#, Java, Javascript, PHP, and Scala), inserting a double slash (//) in a line marks everything after the double slash in the line as a "comment," i.e. something for humans to read that generally helps them understand the code better, rather than something for the computer to execute. Since all comment lines are ignored when a program is run or compiled, it is possible to simply put a double slash in front of any line of code to skip that line. This is known as "commenting out" the line.
 
 
printf("This line of code will be compiled and executed.");
 
<font color="green">//printf("This line of code will be ignored, because it has been 'commented-out' by the two slashes.");</font>
 
  
 
An {{w|Integrated development environment|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. The title text refers to this variation among IDEs' color schemes.
 
An {{w|Integrated development environment|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. The title text refers to this variation among IDEs' color schemes.

Please note that all contributions to explain xkcd may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see explain xkcd:Copyrights for details). Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel | Editing help (opens in new window)