shortprogram
Shortprogram is a term used in computer programming to describe a compact, purpose-specific piece of software written with the aim of achieving a task using as few characters, bytes, or tokens as possible. The phrase is informal and variably defined; it is not a formal programming language or standard. In practice, short programs are central to code golf communities where participants compete to produce correct solutions with the smallest possible size under predefined constraints.
Short programs are most common in golfing languages designed for brevity, such as Pyth, Jelly, 05AB1E, and
Metrics for measuring short programs typically use bytes or characters, and sometimes tokens. Trade-offs often include
The concept echoes ideas from Kolmogorov complexity, describing the shortest description that generates a given result.
See also: code golf, golfing language, obfuscated code, code size.