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 10: Line 10:
 
This was the first of two [[:Category:New Year|New Year comics]] around the 2019-2020 New Year, the second being [[2249: I Love the 20s]].
 
This was the first of two [[:Category:New Year|New Year comics]] around the 2019-2020 New Year, the second being [[2249: I Love the 20s]].
  
βˆ’
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 legtimately 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; 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).

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)