Etymology

code golf

Today it means: A recreational computer programming competition in which participants attempt to write the shortest possible source code to implement a given algorithm. Full definition →

Ask AI about its historyChatGPTClaudePerplexityGoogle AIGrok

The story

By analogy with the sport of golf, in which players aim to sink the ball in the hole in the fewest strokes possible.

Etymology from Wiktionary, CC BY-SA 4.0.