Editing 379: Forgetting
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++}}) | + | [[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 | + | As stated previously, Cueball is removing an item from a linked list. This will essentially delete, or make the computer "forget" about the item. Cueball realizes that he cannot forget this emotional event through the use of two commands as he can with a computer, which only makes him feel depressed about an unsaid event, the item -- in a sense -- which cannot be removed. |
− | The title text explains that assertion in question fails: | + | He writes two comments further clarifying his sense of hopelessness over this event, followed by an assertion that "it will be okay", something which 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. | ||
==Transcript== | ==Transcript== | ||
Line 37: | Line 39: | ||
[[Category:Comics featuring Cueball]] | [[Category:Comics featuring Cueball]] | ||
[[Category:Programming]] | [[Category:Programming]] | ||
− |