Title text: Of course, the assert doesn't work.
Cueball is writing a piece of code (probably in the programming language C++) which removes an item from a data structure called a Linked list (the first two lines of the text). Then, he writes a comment (which is delimited by the double slashes) relating the code to his personal life. Finally, he adds an 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 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:
assert ( velocity_of_neutrino <= speed_of_light );
If the assertion fails, then the program will stop with an error. This would be much better than publishing an embarrassing paper, for example.
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.
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.
- [Cueball sits at computer, coding.]
prev->next = toDelete->next; delete toDelete; //if only forgetting were //this easy for me.
- Cueball: <sniff>
- [Cueball lowers his head into his hands and cries.]
- [Cueball types again.]
assert "It's going to be okay.";
add a comment! ⋅ add a topic (use sparingly)! ⋅ refresh comments!