Editing 2248: New Year's Eve

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:
 
An easy way to determine someone's age is to subtract their birth year from the current year. However, if their birthday has not happened yet that year, this calculation will predict them to be a year older than they actually are. By {{w|New Year's Eve}}, everybody's birthday has happened that year (or ''is'' happening, but legitimately tallied up), so this error will not occur. [[Cueball]] is excited by this, whereas most people would be more excited by the parties that typically occur around New Year's.
 
An easy way to determine someone's age is to subtract their birth year from the current year. However, if their birthday has not happened yet that year, this calculation will predict them to be a year older than they actually are. By {{w|New Year's Eve}}, everybody's birthday has happened that year (or ''is'' happening, but legitimately tallied up), so this error will not occur. [[Cueball]] is excited by this, whereas most people would be more excited by the parties that typically occur around New Year's.
  
βˆ’
"Off-by-one" errors are commonly made in computer programming, especially by novices, when looping over sets of objects. They can also appear in everyday life. If one is given a range of numbers, such as {10, 11, 12, ..., 99, 100}, a common error is to assume that the number of numbers in the range is the first number minus the last number: 100-10 = 90. However, the correct answer is 91 since both endpoints are included in the set. This specific type of "off-by-one" error is called a fencepost error; as-in, a fence with ten fence segments will require eleven fenceposts to support it, but many may erroneously believe that it requires ten fenceposts (one post for each segment).
+
"Off-by-one" errors are commonly made in computer programming, especially by novices, when looping over sets of objects. They can also appear in everyday life. If one is given a range of numbers, such as {10, 11, 12, ..., 99, 100}, a common error is to assume that the number of numbers in the range is the first number minus the last number: 100-10 = 90. However, the correct answer is 91 since both endpoints are included in the set. This specific type of "off-by-one" error is called a fencepost error.
  
 
In the title text, Cueball suggests a New Year's Eve party with the theme of "off-by-one errors", saying it's challenging to build off of but that he's heard of worse. No information is given as to what such a party theme would entail, nor what could possibly be a worse party theme. (On the other hand, the parties depicted in [[51: Malaria]] and [[829: Arsenic-Based Life]], based on themes of disease and poison, respectively, look much worse than an "off-by-one errors" party would likely be.)
 
In the title text, Cueball suggests a New Year's Eve party with the theme of "off-by-one errors", saying it's challenging to build off of but that he's heard of worse. No information is given as to what such a party theme would entail, nor what could possibly be a worse party theme. (On the other hand, the parties depicted in [[51: Malaria]] and [[829: Arsenic-Based Life]], based on themes of disease and poison, respectively, look much worse than an "off-by-one errors" party would likely be.)

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)