Path: csiph.com!usenet.pasdenom.info!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'example:': 0.03; 'defines': 0.07; 'framework.': 0.07; 'subject:code': 0.07; 'suppose': 0.07; 'subject:How': 0.09; 'django,': 0.09; 'sep': 0.09; 'url:github': 0.09; 'cc:addr:python-list': 0.10; 'language': 0.14; 'sat,': 0.15; '(also': 0.16; 'web2py,': 0.16; 'wrote:': 0.17; '(in': 0.18; 'hack': 0.18; 'tests': 0.18; 'module': 0.19; 'received:209.85.214.174': 0.21; 'decorators': 0.22; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'feature': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'done.': 0.27; 'rules': 0.27; 'module.': 0.27; 'skip:@ 10': 0.27; 'message-id:@mail.gmail.com': 0.27; 'chris': 0.28; 'idea,': 0.29; 'url:mailman': 0.29; "i'm": 0.29; 'usually': 0.30; 'framework': 0.30; 'code': 0.31; 'url:python': 0.32; 'could': 0.32; 'url:listinfo': 0.32; 'requirement.': 0.33; 'another': 0.33; 'received:google.com': 0.34; 'awesome': 0.35; 'subject:?': 0.35; 'received:209.85': 0.35; 'url:org': 0.36; 'method': 0.36; 'does': 0.37; 'uses': 0.37; 'received:209': 0.37; 'well.': 0.37; 'subject:: ': 0.38; 'received:209.85.214': 0.39; 'little': 0.39; 'subject:-': 0.40; 'header:Received:5': 0.40; 'url:mail': 0.40; 'love': 0.63; 'fun': 0.64; 'taking': 0.65; 'enjoy': 0.67; 'satisfied': 0.83; 'subject:you': 0.88; 'subject:services': 0.91; 'fun!': 0.95 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=BfHji3F8hQOFP7LSPC6tuP6fkehUFbn4mjKDDk51ldY=; b=fYZKGRFTAjvz2DPZGXkPxEq/jVLgzx/lya1/GY+T+f5ZIdeNWQxK4g9M3jAQ5Ydw33 fvAkav4gwRrCt/s1Qya/3Qv9ZvhPXowH6jh7IZxfoRVxvDOOfQMBr48YiBdUFl26kka5 4QyvBQIuDlNJYkPrkjZ1i4uBsG4hCcAzuBw3Xzb8FIgcG657jWkuThrJzce1dDqWDWzg 0yg8m2Y5l1wL8x8/R3u8Bv3Pg83nZz1x72b1fm8NHxNkiF/PDH3swwcM+ZAx6+8kQElr CwFpxBiHINdi41f95HcnXLT7ELXENRZBHfbI4C2n8I40RobZzmLfY2yMOiuT5Nh7zK/7 alwQ== MIME-Version: 1.0 In-Reply-To: <5065B16B.5030405@gmail.com> References: <5065B16B.5030405@gmail.com> Date: Sat, 29 Sep 2012 02:25:31 +1000 Subject: Re: REST code-golf: How concisely can you expose and consume services? From: Alec Taylor To: Demian Brecht Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 33 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348849535 news.xs4all.nl 6869 [2001:888:2000:d::a6]:49726 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:30413 On Sat, Sep 29, 2012 at 12:17 AM, Demian Brecht wrote: > (A little OT so my apologies up front) > > > On 12-09-28 12:39 AM, Chris Angelico wrote: >> >> I love the idea, even though I shan't be entering. Code golf is awesome >> fun! > > > Code golf is indeed awesome fun and I usually enjoy taking part as well. > However, I'm not a fan of code golf such as this, that uses a framework and > then defines a rule that you *can't* hack on the same framework. > > In the framework/external module spirit, I *could* write a module that does > *all* of this for me (in Pyramid, Django, web2py, etc) and then enter with a > simple method call in another module. > > Done. One liner. I win ;) > > I much prefer code golf that tests algorithmic/core language feature > knowledge. Of course, that's entirely only my opinion. > > -- > Demian Brecht > @demianbrecht > http://demianbrecht.github.com > -- > http://mail.python.org/mailman/listinfo/python-list Well I suppose I could lax that same requirement. I.e.: if you can get these decorators (also working with RBAC) in, for example: Django; then it still satisfied the rules :)