Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > RE: Web Frameworks Excessive Complexity

Reply
Thread Tools

RE: Web Frameworks Excessive Complexity

 
 
Andriy Kornatskyy
Guest
Posts: n/a
 
      11-21-2012

I believe for the quality of code you produce.

Thanks.

Andriy


----------------------------------------
> From: http://www.velocityreviews.com/forums/(E-Mail Removed)
> Subject: Re: Web Frameworks Excessive Complexity
> Date: Wed, 21 Nov 2012 11:43:10 +0000
> To: (E-Mail Removed)
>
> 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"*3+y,"quux":math.sin(y)}.get(mod e,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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Web Frameworks Excessive Complexity Robert Kern Python 7 11-22-2012 05:22 AM
RE: Web Frameworks Excessive Complexity Andriy Kornatskyy Python 0 11-20-2012 08:22 PM
RE: Web Frameworks Excessive Complexity Andriy Kornatskyy Python 0 11-20-2012 07:46 PM
Re: Web Frameworks Excessive Complexity Robert Kern Python 0 11-20-2012 07:32 PM



Advertisments