Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #33722
| 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 | <andriy.kornatskyy@live.com> |
| 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 <andriy.kornatskyy@live.com> |
| To | <steve+comp.lang.python@pearwood.info>, "python-list@python.org" <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 | <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 <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.144.1353498487.29569.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
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, 21 Nov 2012 11:43:10 +0000
> To: python-list@python.org
>
> On Wed, 21 Nov 2012 22:21:23 +1100, Chris Angelico wrote:
>
> > Counting complexity by giving a score to every statement encourages code
> > like this:
> >
> > def bletch(x,y):
> > return x + {"foo":y*2,"bar":x*3+y,"quux":math.sin(y)}.get(mode,0)
> >
> > instead of:
> >
> > def bletch(x,y):
> > if mode=="foo": return x+y*2
> > if mode=="bar": return x*4+y
> > if mode=="quux": return x+math.sin(y) return x
> >
> > Okay, this is a stupid contrived example, but tell me which of those
> > you'd rather work with
>
>
> Am I being paid by the hour or the line?
>
>
>
>
> --
> Steven
> --
> http://mail.python.org/mailman/listinfo/python-list
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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