REST code-golf: How concisely can you expose and consume services?

Chris Angelico rosuav at gmail.com
Fri Sep 28 03:39:08 EDT 2012


On Fri, Sep 28, 2012 at 3:41 PM, Alec Taylor <alec.taylor6 at gmail.com> wrote:
> web2py (7 lines): https://gist.github.com/3798093

I love the idea, even though I shan't be entering. Code golf is awesome fun!

My latest golf game involved importing code comments and text-file
annotations into autodoc markup... with two one-liners. And it only
needed two because I did it in two parts (wasn't even aware of the
text file until I'd done the code comments).

Of course, a real RESTful API is likely to have rather more guts in
it, but it's cool how little you need of structure!

ChrisA



More information about the Python-list mailing list