379: Forgetting
explain xkcd: It's 'cause you're dumb.
(Difference between revisions)
(Not bad, who says we don't love you?) |
Divad27182 (Talk | contribs) m (fix date according to http://www.xkcd.com/archive/) |
||
| Line 1: | Line 1: | ||
{{comic | {{comic | ||
| number = 379 | | number = 379 | ||
| − | | date = February | + | | date = February 4, 2008 |
| title = Forgetting | | title = Forgetting | ||
| image = forgetting.png | | image = forgetting.png | ||
Latest revision as of 19:22, 23 February 2013
| Forgetting |
![]() Title text: Of course, the assert doesn’t work. |
[edit] Explanation
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.”
[edit] Transcript
- [Cueball sits at computer, coding]
- Text on computer: prev->next = toDelete->next;
- delete toDelete;
- // if only forgetting were
- // this easy for me
- Cueball at computer: <sniff>
- [Man at computer lowers his head into his hands and cries]
- [Cueball types again]
- Text on computer: assert "It's going to be okay.";
Discussion
No comments yet.
