Mayank Lahiri, a researcher at the University of Illinois at Chicago, has thrown down a golfing challenge for his 9-line program to send the FourSquare geolocation API randomly skewed arbitrary data.
I've already made him aware of my 5-line version which uses only the simplest of changes, and I am sure there is more to strip out of this. What would Perl Golf be without involving the Monks?
Unlike some golf challenges, this challenge includes any "standard" (which I take to mean "part of the core distribution as shipped") Perl modules. He's also concerned more with lines of code (let's assume logical lines of code and not just really long concatentations of different logical steps) than with character count, at least from his description. The full rules are included on the linked page. He promises to include any variations which use fewer lines and meet the specs he put forth on his journal. Code clarity is not one of his specs.
The original point of his journal entry is the insecurity through obscurity of the API in question. The golf challenge I think is just for a bit of fun. Once a program is under ten lines, I don't think it being any shorter is of much importance to prove his point. Still, as a chance to show off Perl's power and expressiveness, this is a golden opportunity. Bragging rights for the golfer with the smallest solution don't hurt, either.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Nine-line Perl example of gaming a geolocation service and an open invitation to golf it
by ikegami (Patriarch) on Aug 21, 2010 at 18:10 UTC | |
|
Re: Nine-line Perl example of gaming a geolocation service and an open invitation to golf it
by james2vegas (Chaplain) on Aug 21, 2010 at 18:56 UTC |