<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.explainxkcd.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=R1pp3rj4ck</id>
		<title>explain xkcd - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://www.explainxkcd.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=R1pp3rj4ck"/>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php/Special:Contributions/R1pp3rj4ck"/>
		<updated>2026-05-15T18:53:04Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://www.explainxkcd.com/wiki/index.php?title=1960:_Code_Golf&amp;diff=153103</id>
		<title>1960: Code Golf</title>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php?title=1960:_Code_Golf&amp;diff=153103"/>
				<updated>2018-02-26T13:51:17Z</updated>
		
		<summary type="html">&lt;p&gt;R1pp3rj4ck: /* Explanation */ variable names to function names as they're functions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{comic&lt;br /&gt;
| number    = 1960&lt;br /&gt;
| date      = February 26, 2018&lt;br /&gt;
| title     = Code Golf&lt;br /&gt;
| image     = code_golf.png&lt;br /&gt;
| titletext = I also enjoy Reverse Regular Golf. I've been playing for years all across the country and I'm still on the first hole.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Explanation==&lt;br /&gt;
{{incomplete|Created by a BOT - Please change this comment when editing this page. Do NOT delete this tag too soon.}}&lt;br /&gt;
This comic refers to {{w|code golf}}, the idea of using as few characters as possible to achieve your code goal, similar to how in {{w|golf|regular golf}}, the goal is to get to the end with as few strokes as possible. Reverse code golf would be to use as many characters as possible, which he does in the code example with overly long function names that are [https://en.wikisource.org/wiki/Moby-Dick/Chapter_1 the beginning lines] of {{w|Herman Melville}}'s notoriously long-winded whaling novel ''{{w|Moby-Dick}}''. &lt;br /&gt;
&lt;br /&gt;
Code golf is a game among programmers where contestants try to solve a given problem or challenge with as little code as possible (usually decided by measuring the program in bytes). In the comic's version, Reverse Code Golf, the object is to complete some mundane task in as many bytes as possible, hence the ridiculously long method and variable names. Instead of {{w|Python (programming language)|Python}}, one could use {{w|JSFuck}} though, which is valid {{w|JavaScript}} code - but written with only six different characters. Even mundane variable names like &amp;lt;code&amp;gt;LowestDenominator&amp;lt;/code&amp;gt; will take up hundreds, if not thousands, of bytes in JSFuck.&lt;br /&gt;
&lt;br /&gt;
Additionally, the first two functions defined implement “zero” and “successor”, the two basic operations of {{w|Peano axioms|Peano arithmetic}}. Presumably, the programmer will next implement natural number addition, then integers, then whichever branches of mathematics the original problem needs, all from scratch.&lt;br /&gt;
&lt;br /&gt;
The title text refers to the concept of &amp;quot;Reverse Golf&amp;quot;, a variation on golf where the aim is to take as many strokes as possible to get the ball in the hole.&lt;br /&gt;
&lt;br /&gt;
==Transcript==&lt;br /&gt;
{{incomplete transcript|Do NOT delete this tag too soon.}}&lt;br /&gt;
[ Program text in a black box ]&lt;br /&gt;
:define callMeIshmaelSomeYearsAgoNeverMindHowLongPrecisely():&lt;br /&gt;
::return 0&lt;br /&gt;
:define havingLittleOrNoMoneyInMyPurseAndNothingParticular(toInterestMeOnShoreIThoughtIWouldSail):&lt;br /&gt;
::return 1+toInterestMeOnShoreIThoughtIWouldSail&lt;br /&gt;
:define aLittleAndSeeTheWateryPartOfTheWorld(&lt;br /&gt;
&lt;br /&gt;
Caption under the black box: My hobby: Reverse Code Golf&lt;br /&gt;
{{comic discussion}}&lt;br /&gt;
&lt;br /&gt;
[[Category:My Hobby]]&lt;/div&gt;</summary>
		<author><name>R1pp3rj4ck</name></author>	</entry>

	</feed>