Editing 379: Forgetting

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 8: Line 8:
  
 
==Explanation==
 
==Explanation==
[[Cueball]] is writing a piece of code (probably in the programming language {{w|C++}}) that removes an item from a data structure called a {{w|Linked list}} (the first two lines of the text). Then, he writes a {{w|Comment (computer programming)|comment}} (delimited by the double slashes) relating the code to his personal life. Finally, he adds an {{w|Assertion (computing)|assertion}}, which is normally a formal specification of a condition that should always be true (with which the programmer ensures that, e.g. mass is not negative). But in this case, instead of asserting a software-related predicate, he asserts that "it's going to be okay" - and because of how {{w|String literal|string literals}} are treated by the interpreter, the assertion will be true.
+
[[Cueball]] is writing a piece of code (probably in the programming language {{w|C++}}) which removes an item from a data structure called a {{w|Linked list}} (the first two lines of the text). Then, he writes a {{w|Comment (computer programming)|comment}} (which is delimited by the double slashes) relating the code to his personal life. Finally, he adds an {{w|Assertion (computing)|assertion}}, which is normally a formal specification of a condition which should always be true (with which the programmer ensures that e.g. mass is not negative). But in this case, instead of asserting a software-related predicate, he asserts that "it's going to be okay" - and because of how {{w|String literal|string literals}} are treated by the interpreter, the assertion will be true.
  
 
An "assert" is a programming statement that allows you to insert sanity checks into your code. For example, if you were writing a program to calculate the speed of a neutrino, then at the end of the calculation you could say:   
 
An "assert" is a programming statement that allows you to insert sanity checks into your code. For example, if you were writing a program to calculate the speed of a neutrino, then at the end of the calculation you could say:   
Line 15: Line 15:
 
If the assertion fails, then the program will stop with an error. This would be much better than publishing an embarrassing paper, for example.  
 
If the assertion fails, then the program will stop with an error. This would be much better than publishing an embarrassing paper, for example.  
  
Cueball realizes that he cannot forget his emotional event through the use of two commands as he can with a computer, which only makes him feel sad about an unsaid event, the item -- in a sense -- that cannot be removed.  He writes two comments further clarifying his sense of hopelessness over this event, followed by an assertion that "it will be okay," something that has nothing to do with the code he is writing.
+
The title text explains that assertion in question fails: we cannot be sure that things are going to be ok.
 
 
The title text explains that assertion in question fails: nobody can be sure that things are going to be okay.
 
  
 
==Transcript==
 
==Transcript==
Line 37: Line 35:
 
[[Category:Comics featuring Cueball]]
 
[[Category:Comics featuring Cueball]]
 
[[Category:Programming]]
 
[[Category:Programming]]
[[Category:Comics with lowercase text]]
 

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)