I refer you to the following video, which describes how to implement Conway's Game of Life in APL, using a few dozen keystrokes:
http://www.youtube.com/watch?v=a9xAKttWgP4
This video was featured prominently in the Return of Uncle Bob Martin podcast, in which Scott Hanselman complains that "his hands hurt" from programming in languages that require too many keystrokes.
Of course, none of us are going to replace our keyboard just to learn an old, obsolete programming language (or are we?), but I have heard that programmers can be two to three times more productive, depending on the language they are working in. Is it because they are working in "denser" languages?
What are the densest commonly used (practical) programming languages currently available? Do they improve productivity because they are dense?
just look at threads tagged code-golf :)
From a definition of code golf ...
It seems that someone gives us a problem to solve, tags the question code-golf and the winner is whoever completes the solution in the fewest characters
Like in golf where the low score wins, the fewest amount of characters "wins". While certainly the best solution in every case is not necessarily the solution that has the fewest characters or fewest lines of code, it can be a fun way to exercise your programming muscles.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With