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


Groups > comp.lang.python > #66648

Re: Bad Code Snippet of the Day

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.044
X-Spam-Evidence '*H*': 0.91; '*S*': 0.00; 'dynamically': 0.07; 'drinks,': 0.09; 'oop': 0.09; 'pretend': 0.09; 'cc:addr:python- list': 0.11; '(either': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'humour': 0.16; 'nightmare': 0.16; 'nose': 0.16; 'exception': 0.16; 'language': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'feb': 0.22; 'cc:addr:python.org': 0.22; 'subject:Code': 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'gets': 0.27; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'function': 0.29; 'am,': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'about.': 0.31; 'subject:the': 0.34; 'beyond': 0.35; 'johnson': 0.35; 'received:google.com': 0.35; 'ability': 0.39; 'does': 0.39; 'functional': 0.39; 'how': 0.40; 'skip:u 10': 0.60; 'catch': 0.60; "you're": 0.61; 'face': 0.64; 'talking': 0.65; 'hours': 0.66; 'determine': 0.67; 'cut': 0.74; 'off,': 0.84; 'spite': 0.84; 'cutting': 0.91; 'subject:Day': 0.91; 'to:none': 0.92; 'rick': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=J3yimhCcTf8e9Fg3cRBm7vSwr+6AgVxd5bmW5HXOZHM=; b=jEe1Pw3SAM5hrAowHKEsInDyQB+x24U3AsePrTxRu4XJG6llkc6vW1Eovg+EfBCEKJ vMHPb+5mKm+4rEkGdInVwc8RadRn7udSEZbRDkfnav/9LnHpJKt1m1PabwpL0J0ndERd gYBmhVhN33x7yJXyaoB8s+RqRssOC2BMaJmkK2cPkJhGIkIFbfXvquNv5cQb6D4Zp1ic DE9O3EmsZd8ClItMi4XDlL0t3g3+22/K+TRvx+DyJnVftWLYf+MK3gwQZ+ZJhvuPdd3z aurhJyLbMYFHN6Mp2kgddv1N9cic5VGxjFgLKkuX0BTjmgYseWec9Nt/1KnM04IIphql csGA==
MIME-Version 1.0
X-Received by 10.68.200.74 with SMTP id jq10mr6049817pbc.169.1392758486013; Tue, 18 Feb 2014 13:21:26 -0800 (PST)
In-Reply-To <5f3e508e-d4d6-4573-b562-e393f7183f5a@googlegroups.com>
References <mailman.7119.1392742039.18130.python-list@python.org> <5f3e508e-d4d6-4573-b562-e393f7183f5a@googlegroups.com>
Date Wed, 19 Feb 2014 08:21:25 +1100
Subject Re: Bad Code Snippet of the Day
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
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 <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.7127.1392758489.18130.python-list@python.org> (permalink)
Lines 18
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1392758489 news.xs4all.nl 2853 [2001:888:2000:d::a6]:55345
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:66648

Show key headers only | View raw


On Wed, Feb 19, 2014 at 8:10 AM, Rick Johnson
<rantingrickjohnson@gmail.com> wrote:
> Beyond that this code (either conscientiously or unconsciously)
> exposes the onerous and obfuscation of a language design
> that coddles a global function nightmare paradigm over the
> elegance of true OOP -- talk about cutting off your nose
> just to spite your face!

Humour me, Rick. Pretend I've been awake for 22 hours straight, am
wired on sleep-deprivation and energy drinks, and have no idea what
you're talking about. How exactly does the ability to dynamically
determine which exception to catch coddle a functional paradigm, and
how is it not object oriented?

Also, my face doesn't much care for my nose. It gets in the way. If I
cut my nose off, my face would be happy with me.

ChrisA

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


Thread

Bad Code Snippet of the Day Chris Angelico <rosuav@gmail.com> - 2014-02-19 03:47 +1100
  Re: Bad Code Snippet of the Day Rick Johnson <rantingrickjohnson@gmail.com> - 2014-02-18 13:10 -0800
    Re: Bad Code Snippet of the Day Chris Angelico <rosuav@gmail.com> - 2014-02-19 08:21 +1100

csiph-web