in reply to Golf code in perl
🏌 ⛳
Not specifically answering your question, but you seem to have become addicted to the competitive aspect of code golf. Though currently retired, I've experienced first-hand how addictive it can become, how you find yourself shaking your fist in fury at someone you don't know, from the other side of the world, who just had the temerity to pass you on the code golf leaderboard! :)
BTW, tybalt89, who answered your post with the 44 character solution, is mentioned in some of the links below and is one of the all-time golfing greats, and yes he is on the other side of the world to me, and yes he used to regularly pass me on the Perl golf leaderboard ... though I didn't shake my fist in fury at him because I knew how good he was and expected it; I shook my fist most often at `/anick, who I expected to beat, but sometimes didn't.
If you are eager to improve your golfing skills (as opposed to getting others to solve the problem for you) you could learn from the vast amount of prior art in code golf, for example by reading and understanding the many solutions described in the code golf nodes below:
- The golf course looks great, my swing feels good, I like my chances (Part I)
- The golf course looks great, my swing feels good, I like my chances (Part II)
- The golf course looks great, my swing feels good, I like my chances (Part III)
- The golf course looks great, my swing feels good, I like my chances (Part IV)
- The golf course looks great, my swing feels good, I like my chances (Part V)
- The golf course looks great, my swing feels good, I like my chances (Part VI)
- Spending Time on Saving Time [golf]
- Drunk on golf: 99 Bottles of Beer
- Re: too much free time (99 Bottles of Beer)
- The 10**21 Problem (Part I)
- The 10**21 Problem (Part 2)
- The 10**21 Problem (Part 3)
- The 10**21 Problem (Part 4)
- Dueling Flamingos: The Story of the Fonality Christmas Golf Challenge
- Golf: Magic Formula for Roman Numerals
- When One Golfer Speculates On What Another Is Doing...
- Re^2: Golf: Length of longest line in a file
- Re^3: Counting positive numbers
- Re: pi and some continued fractions
- Re^2: Mini-Tutorial: Working with Odd/Even Elements
- Re: Golf: Sudoku solving
- Re^3: Perl Golf Ethics
- Re: Rot13 Challenge
- Re^3: Golf: Count unique words
- Golf: ROT-n
- Golf: Fix de facto HTML comments
- Competition fuels obsession over Perl
- Friday Golf: All 2-digit combinations
- Pascal-Sierpinski for golfers
- Diamonds for fun
- Golf for unique digits
- Homework Golf
- Using the olde times internet
- Golf Challenge: FizzBuzz
- Golf: Factorials
- 12 days of Perl?
- Golf code in perl
- The Decline and Fall of the Roman Empire by grinder (2005) - Roman Numeral obfu (see especially ambrus reply)
- (Golf) Let's go bowling by virtualsue (2001) - many replies
Some Perl Monk Golfers
|
---|