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.030 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'frameworks': 0.05; 'already.': 0.09; 'cherrypy,': 0.09; 'counting': 0.09; 'django,': 0.09; 'frameworks.': 0.09; 'turbogears,': 0.09; 'underlying': 0.09; 'complexity,': 0.16; 'kern': 0.16; 'refactoring': 0.16; 'robert,': 0.16; 'tests)': 0.16; 'to:addr:robert.kern': 0.16; 'wrote:': 0.17; '(or': 0.18; 'code.': 0.20; '+0000': 0.20; 'respective': 0.20; 'to:name:python-list@python.org': 0.20; 'skip:- 40': 0.21; 'thanks.': 0.21; 'developers.': 0.22; 'interpret': 0.22; 'tells': 0.22; 'to:2**1': 0.23; 'thus': 0.24; 'header:In-Reply-To:1': 0.25; '(e.g.': 0.27; 'bugs': 0.27; "doesn't": 0.28; 'lines': 0.28; 'date:': 0.29; 'url:mailman': 0.29; 'points': 0.29; 'source': 0.29; 'framework': 0.30; 'code': 0.31; 'url:python': 0.32; 'url:listinfo': 0.32; 'certain': 0.33; 'from:addr:live.com': 0.33; 'to:addr:python-list': 0.33; 'likely': 0.33; 'recommended': 0.33; 'list': 0.35; 'nov': 0.35; 'robert': 0.35; 'something': 0.35; 'subject:': 0.36; 'url:org': 0.36; 'email addr:python.org': 0.36; 'thank': 0.36; 'too': 0.36; 'beyond': 0.37; 'level': 0.37; 'subject:: ': 0.38; 'degree': 0.38; 'unit': 0.38; 'from:': 0.38; 'fact': 0.38; 'nothing': 0.38; 'instead': 0.39; 'to:addr:python.org': 0.39; 'end': 0.40; 'url:mail': 0.40; 'url:aspx': 0.60; 'interest': 0.62; 'email name:python-list': 0.62; 'world': 0.63; 'email addr:gmail.com': 0.63; 'here': 0.65; 'our': 0.65; 'due': 0.66; 'subject': 0.66; 'believe': 0.69; 'low': 0.83; 'complexity': 0.84; 'eco': 0.84; 'excessive': 0.84; 'terrible': 0.84; 'url:journal': 0.84; 'comment.': 0.91; 'relate': 0.91; 'charset:windows-1251': 0.97 X-Originating-IP: [213.130.16.2] X-EIP: [hJALXChDbqkk5gufXZzAIDk3HZjdsXZe] X-Originating-Email: [andriy.kornatskyy@live.com] From: Andriy Kornatskyy To: , "python-list@python.org" Subject: RE: Web Frameworks Excessive Complexity Date: Tue, 20 Nov 2012 22:46:27 +0300 Importance: Normal In-Reply-To: References: , Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 20 Nov 2012 19:46:27.0500 (UTC) FILETIME=[BAE0F6C0:01CDC757] 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: 51 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1353440854 news.xs4all.nl 6910 [2001:888:2000:d::a6]:59954 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:33651 Robert=2C Thank you for the comment. I do not try relate CC with LOC. Instead pointin= g to excessive complexity=2C something that is beyond recommended threshold= =2C a subject to refactoring in respective web frameworks. Those areas are = likely to be potential source of bugs (e.g. due to low code coverage with u= nit tests) thus have certain degree of interest to both: end users and fram= ework developers. Thanks. Andriy Kornatskyy ---------------------------------------- > To: python-list@python.org > From: robert.kern@gmail.com > Subject: Re: Web Frameworks Excessive Complexity > Date: Tue=2C 20 Nov 2012 19:32:31 +0000 > > On 20/11/2012 17:41=2C Andriy Kornatskyy wrote: > > > > Cyclomatic (or conditional) complexity is a metric used to indicate the= complexity of a source code. Excessive complexity is something that is bey= ond recommended > > level of 10 (threshold that points to the fact the source code is too > > complex and refactoring is suggested). Here is a list of web frameworks= examined: bottle=2C cherrypy=2C circuits=2C > > django=2C flask=2C pyramid=2C pysi=2C tornado=2C turbogears=2C web.py= =2C web2py and > > wheezy.web. > > Cyclomatic complexity tells you nothing that counting lines of code doesn= 't already. > > http://www.scirp.org/Journal/PaperInformation.aspx?paperID=3D779 > > -- > Robert Kern > > "I have come to believe that the whole world is an enigma=2C a harmless e= nigma > that is made terrible by our own mad attempt to interpret it as though it= had > an underlying truth." > -- Umberto Eco > > -- > http://mail.python.org/mailman/listinfo/python-list =