Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.060 X-Spam-Evidence: '*H*': 0.88; '*S*': 0.00; 'frameworks': 0.05; 'counting': 0.09; 'def': 0.10; '11:43:10': 0.16; 'contrived': 0.16; 'to:addr:pearwood.info': 0.16; 'to:addr:steve+comp.lang.python': 0.16; 'wed,': 0.16; 'wrote:': 0.17; '+0000': 0.20; 'to:name:python-list@python.org': 0.20; 'skip:- 40': 0.21; 'thanks.': 0.21; 'statement': 0.23; 'this:': 0.23; 'to:2**1': 0.23; 'header:In-Reply-To:1': 0.25; 'chris': 0.28; 'steven': 0.29; 'date:': 0.29; 'url:mailman': 0.29; 'code': 0.31; 'url:python': 0.32; 'url:listinfo': 0.32; 'from:addr:live.com': 0.33; 'to:addr:python-list': 0.33; 'nov': 0.35; 'subject:': 0.36; 'but': 0.36; 'url:org': 0.36; 'email addr:python.org': 0.36; 'being': 0.37; 'rather': 0.37; 'subject:: ': 0.38; 'from:': 0.38; 'instead': 0.39; 'to:addr:python.org': 0.39; 'url:mail': 0.40; 'email name:python-list': 0.62; 'of:': 0.65; 'believe': 0.69; 'hour': 0.69; 'quality': 0.69; 'score': 0.75; 'complexity': 0.84; 'excessive': 0.84; 'produce.': 0.84; 'charset:windows-1251': 0.97 X-Originating-IP: [194.44.213.194] X-EIP: [uaAs9MozuR5soHe+SVQQx78mNawnA+Zv] X-Originating-Email: [andriy.kornatskyy@live.com] From: Andriy Kornatskyy To: , "python-list@python.org" Subject: RE: Web Frameworks Excessive Complexity Date: Wed, 21 Nov 2012 14:47:00 +0300 Importance: Normal In-Reply-To: <50acbe4e$0$29987$c3e8da3$5496439d@news.astraweb.com> References: , , , , <50ac31dd$0$29987$c3e8da3$5496439d@news.astraweb.com>, <67gun9-kk8.ln1@satorlaser.homedns.org>, , , <50acbe4e$0$29987$c3e8da3$5496439d@news.astraweb.com> Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 21 Nov 2012 11:47:00.0616 (UTC) FILETIME=[EAE49080:01CDC7DD] 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: 45 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1353498487 news.xs4all.nl 6961 [2001:888:2000:d::a6]:42248 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:33722 I believe for the quality of code you produce. Thanks. Andriy ---------------------------------------- > From: steve+comp.lang.python@pearwood.info > Subject: Re: Web Frameworks Excessive Complexity > Date: Wed=2C 21 Nov 2012 11:43:10 +0000 > To: python-list@python.org > > On Wed=2C 21 Nov 2012 22:21:23 +1100=2C Chris Angelico wrote: > > > Counting complexity by giving a score to every statement encourages cod= e > > like this: > > > > def bletch(x=2Cy): > > return x + {"foo":y*2=2C"bar":x*3+y=2C"quux":math.sin(y)}.get(mode=2C0) > > > > instead of: > > > > def bletch(x=2Cy): > > if mode=3D=3D"foo": return x+y*2 > > if mode=3D=3D"bar": return x*4+y > > if mode=3D=3D"quux": return x+math.sin(y) return x > > > > Okay=2C this is a stupid contrived example=2C but tell me which of thos= e > > you'd rather work with > > > Am I being paid by the hour or the line? > > > > > -- > Steven > -- > http://mail.python.org/mailman/listinfo/python-list =