Code golf: Difference between revisions

Jump to navigation Jump to search
3 bytes added ,  23:20, 20 November 2020
m
no edit summary
m (two minor "typos")
mNo edit summary
Line 1: Line 1:
'''Code golf''' is a type of recreational computer programming competition in which participants strive to achieve the shortest possible source code that solves a given problem. While the exact origins of this sport is lost to history, it is known to have been popular with early APLers. While dedicated ''golfing languages'' (programming languages constructed expressly for the purpose of winning code golf competitions) usually can accomplish the goal with shorter code than APL can muster, APL does almost always have the upper hand when compared to other production languages. This is thanks to APL's array comprehension and common operations being represented by [[glyph|single character]]s.
'''Code golf''' is a type of recreational computer programming competition in which participants strive to achieve the shortest possible source code that solves a given problem. While the exact origins of this sport is lost to history, it is known to have been popular with early APLers. While dedicated ''golfing languages'' (programming languages constructed expressly for the purpose of winning code golf competitions) usually can accomplish the goal with shorter code than APL can muster, APL does almost always have the upper hand when compared to other production languages. This is thanks to APL's array comprehension and common operations being represented by [[glyph|single character]]s.


For production code, one normally shouldn't just strive for code that is as short as possible, as code clarity, execution speed, and memory usage usually are more import. However, engaging in code golf can serve to:
For production code, one normally shouldn't just strive for code that is as short as possible, as code clarity, execution speed, and memory usage usually are more important. However, engaging in code golf can serve to:


* encourage exploration of the programming language's facilities
* encourage exploration of the programming language's facilities
trusted
63

edits

Navigation menu