Editing 1188: Bonding

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 is {{w|source code}} written in the {{w|Java (programming language)|Java programming language}} which models a parent and a child playing a {{w|Catch (game)|game of catch}}.  Normally this game is played with the parent throwing a ball to their child, who catches it and throws it back, and repeated back-and-forth. The comic title "Bonding" refers to the {{w|Paternal bond|building of relationship}} between the parent and the child. The joke lies in the puns using the words <code>try</code>, <code>throw</code>, <code>catch</code>, and <code>Throwable</code>.  These can refer to actions in the real-life game, but are also keywords in the Java language that are used for {{w|exception handling}}, a method of signaling error conditions and responding to them.  Also, the terms "parent" and "child" are usually interpreted more abstractly in programming, as generic terms used in hierarchical {{w|Data structure|data structures}}.
 
This is {{w|source code}} written in the {{w|Java (programming language)|Java programming language}} which models a parent and a child playing a {{w|Catch (game)|game of catch}}.  Normally this game is played with the parent throwing a ball to their child, who catches it and throws it back, and repeated back-and-forth. The comic title "Bonding" refers to the {{w|Paternal bond|building of relationship}} between the parent and the child. The joke lies in the puns using the words <code>try</code>, <code>throw</code>, <code>catch</code>, and <code>Throwable</code>.  These can refer to actions in the real-life game, but are also keywords in the Java language that are used for {{w|exception handling}}, a method of signaling error conditions and responding to them.  Also, the terms "parent" and "child" are usually interpreted more abstractly in programming, as generic terms used in hierarchical {{w|Data structure|data structures}}.
  
βˆ’
The program, as written, will {{w|Recursion (computer science)|recursively}} call the <code>aim</code> method alternately on the parent and the child indefinitely, causing each to take turns throwing and catching the <code>Ball</code> object.  Note that unlike the real game, this program actually has the same person both throwing and catch the same ball on their turn.  The ball is passed onto the other person by ''aiming'' it at them, which causes the person to both throw and catch the ball, and ''aim'' it back, perpetuating the cycle.  This program will also eventually crash with a {{w|stack overflow}} error.
+
The program, as written, will {{w|Recursion (computer science)|recursively}} call the <code>aim</code> method alternately on the parent and the child indefinitely, causing each to take turns throwing and catching the <code>Ball</code> object.  Note that unlike the real game, this program actually has the same person both throwing and catch the same ball on their turn.  The ball is passed onto the other person by ''aiming'' it at them, which causes the person to both throw and catch the ball, and ''aim'' it back.  This program will also eventually crash with a {{w|stack overflow}} error.
  
 
The title text refers to the [http://www.eclipse.org/ Eclipse IDE], which is a tool commonly used to develop software in Java. "Building character" is something that you would expect a parent to do, in order to instill in his child positive traits, such as confidence and athleticism. This is possibly a reference to {{w|Calvin_and_Hobbes|Calvin and Hobbes}}, where Calvin's dad often encourages him to build character in a number of ways, including playing baseball. This is made more likely by other references combining technology with Calvin and Hobbes, such as xkcd comics [[409: Electric Skateboard (Double Comic)]], [[702: Snow Tracking]] and [[1002: Game AIs]]. However, here, "build" might also be a play on the term of "{{w|Software build|building}}" a program, while "{{w|Character_(computing)|character}}" refers to a data type in programming languages. It may also refer to the common notion that programming in C++ or Java builds character due to their powerful but sometimes finicky libraries.
 
The title text refers to the [http://www.eclipse.org/ Eclipse IDE], which is a tool commonly used to develop software in Java. "Building character" is something that you would expect a parent to do, in order to instill in his child positive traits, such as confidence and athleticism. This is possibly a reference to {{w|Calvin_and_Hobbes|Calvin and Hobbes}}, where Calvin's dad often encourages him to build character in a number of ways, including playing baseball. This is made more likely by other references combining technology with Calvin and Hobbes, such as xkcd comics [[409: Electric Skateboard (Double Comic)]], [[702: Snow Tracking]] and [[1002: Game AIs]]. However, here, "build" might also be a play on the term of "{{w|Software build|building}}" a program, while "{{w|Character_(computing)|character}}" refers to a data type in programming languages. It may also refer to the common notion that programming in C++ or Java builds character due to their powerful but sometimes finicky libraries.

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)