Difference between revisions of "1960: Code Golf"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
(Transcript)
(Transcript)
Line 15: Line 15:
 
Additionally, the first two functions defined implement “zero” and “successor”, the two basic operations of 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.
 
Additionally, the first two functions defined implement “zero” and “successor”, the two basic operations of 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.
  
==Transcript==
+
==Explanation==
{{incomplete transcript|Do NOT delete this tag too soon.}}
+
{{incomplete|Created by a BOT - Please change this comment when editing this page. Do NOT delete this tag too soon.}}
[ Program text in a black box ]
+
This comic refers to code golf [https://en.wikipedia.org/wiki/Code_golf], the idea of using as few characters as possible to achieve your code goal, similar to how in 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 variable names that are the beginning lines of Moby Dick. [https://en.wikipedia.org/wiki/Moby-Dick]
:define callMeIshmaelSomeYearsAgoNeverMindHowLongPrecisely():
 
::return 0
 
:define havingLittleOrNoMoneyInMyPurseAndNothingParticular(toInterestMeOnShoreIThoughtIWouldSail):
 
::return 1+toInterestMeOnShoreIThoughtIWouldSail
 
:define aLittleAndSeeTheWateryPartOfTheWorld(
 
  
Caption under the black box: My hobby: Reverse Code Golf
+
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.
{{comic discussion}}
+
 
 +
Additionally, the first two functions defined implement “zero” and “successor”, the two basic operations of 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.

Revision as of 06:40, 26 February 2018

Code Golf
I also enjoy Reverse Regular Golf. I've been playing for years all across the country and I'm still on the first hole.
Title text: I also enjoy Reverse Regular Golf. I've been playing for years all across the country and I'm still on the first hole.

cc==Explanation==

Ambox notice.png This explanation may be incomplete or incorrect: Created by a BOT - Please change this comment when editing this page. Do NOT delete this tag too soon.
If you can address this issue, please edit the page! Thanks.

This comic refers to code golf [1], the idea of using as few characters as possible to achieve your code goal, similar to how in 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 variable names that are the beginning lines of Moby Dick. [2]

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.

Additionally, the first two functions defined implement “zero” and “successor”, the two basic operations of 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.

Explanation

Ambox notice.png This explanation may be incomplete or incorrect: Created by a BOT - Please change this comment when editing this page. Do NOT delete this tag too soon.
If you can address this issue, please edit the page! Thanks.

This comic refers to code golf [3], the idea of using as few characters as possible to achieve your code goal, similar to how in 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 variable names that are the beginning lines of Moby Dick. [4]

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.

Additionally, the first two functions defined implement “zero” and “successor”, the two basic operations of 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.