Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #33652

Re: Web Frameworks Excessive Complexity

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.019
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'method,': 0.07; 'frameworks.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'underlying': 0.09; 'complexity,': 0.16; 'kern': 0.16; 'measures.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'refactoring': 0.16; 'robert,': 0.16; 'simpler,': 0.16; 'suggesting': 0.16; 'tests)': 0.16; 'wrote:': 0.17; 'code.': 0.20; 'respective': 0.20; 'fairly': 0.21; 'developers.': 0.22; 'interpret': 0.22; 'thus': 0.24; 'header:In- Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; '(e.g.': 0.27; 'bugs': 0.27; "doesn't": 0.28; 'correct': 0.28; 'header:X -Complaints-To:1': 0.28; 'lines': 0.28; 'all.': 0.28; 'measure': 0.29; 'source': 0.29; "i'm": 0.29; 'framework': 0.30; 'code': 0.31; 'certain': 0.33; 'to:addr:python-list': 0.33; 'likely': 0.33; 'recommended': 0.33; 'robert': 0.35; 'something': 0.35; 'received:org': 0.36; 'compare': 0.36; 'thank': 0.36; 'beyond': 0.37; 'subject:: ': 0.38; 'degree': 0.38; 'unit': 0.38; 'easier': 0.38; 'instead': 0.39; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'end': 0.40; 'think': 0.40; 'interest': 0.62; 'world': 0.63; '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; 'understand,': 0.84; 'comment.': 0.91; 'relate': 0.91; 'received:86': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Robert Kern <robert.kern@gmail.com>
Subject Re: Web Frameworks Excessive Complexity
Date Tue, 20 Nov 2012 20:07:54 +0000
References <k8glsd$vfk$1@ger.gmane.org> <DUB117-W66187DFCFCCDBA9E2710E091550@phx.gbl>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host cpc24-cmbg15-2-0-cust204.5-4.cable.virginmedia.com
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
In-Reply-To <DUB117-W66187DFCFCCDBA9E2710E091550@phx.gbl>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.85.1353442093.29569.python-list@python.org> (permalink)
Lines 20
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1353442093 news.xs4all.nl 6852 [2001:888:2000:d::a6]:35678
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:33652

Show key headers only | View raw


On 20/11/2012 19:46, Andriy Kornatskyy wrote:
>
> Robert,
>
> Thank you for the comment. I do not try relate CC with LOC. Instead pointing to excessive complexity, something that is beyond recommended threshold, 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 unit tests) thus have certain degree of interest to both: end users and framework developers.

Did you read the paper? I'm not suggesting that you compare CC with LoC; I'm 
suggesting that you don't use CC as a metric at all. The research is fairly 
conclusive that CC doesn't measure what you think it measures. The source of 
bugs is not excessive complexity in a method, just excessive lines of code. LoC 
is much simpler, easier to understand, and easier to correct than CC.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: Web Frameworks Excessive Complexity Robert Kern <robert.kern@gmail.com> - 2012-11-20 20:07 +0000
  Re: Web Frameworks Excessive Complexity Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-11-21 01:43 +0000
    Re: Web Frameworks Excessive Complexity Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2012-11-21 09:33 +0100
      RE: Web Frameworks Excessive Complexity Andriy Kornatskyy <andriy.kornatskyy@live.com> - 2012-11-21 14:09 +0300
      Re: Web Frameworks Excessive Complexity Chris Angelico <rosuav@gmail.com> - 2012-11-21 22:21 +1100
        Re: Web Frameworks Excessive Complexity Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-11-21 11:43 +0000
          RE: Web Frameworks Excessive Complexity Andriy Kornatskyy <andriy.kornatskyy@live.com> - 2012-11-21 14:47 +0300
          Re: Web Frameworks Excessive Complexity Chris Angelico <rosuav@gmail.com> - 2012-11-22 09:12 +1100
          Re: Web Frameworks Excessive Complexity Modulok <modulok@gmail.com> - 2012-11-21 22:22 -0700
      RE: Web Frameworks Excessive Complexity Andriy Kornatskyy <andriy.kornatskyy@live.com> - 2012-11-21 14:45 +0300
    Re: Web Frameworks Excessive Complexity Robert Kern <robert.kern@gmail.com> - 2012-11-21 11:47 +0000

csiph-web