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


Groups > comp.lang.python > #7914

Re: What's the best way to write this base class?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!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.135
X-Spam-Level *
X-Spam-Evidence '*H*': 0.73; '*S*': 0.00; 'sorts': 0.04; 'am,': 0.14; 'wrote:': 0.14; 'angelico': 0.16; 'awesome.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'structures,': 0.16; 'threw': 0.16; 'things.': 0.16; 'programming': 0.19; 'header:In-Reply-To:1': 0.21; 'loop': 0.22; 'primarily': 0.22; 'explore': 0.23; 'received:209.85.210.174': 0.23; 'received:mail-iy0-f174.google.com': 0.23; 'message- id:@mail.gmail.com': 0.28; 'character': 0.29; 'subject:?': 0.29; 'lists': 0.29; 'class': 0.29; 'sun,': 0.30; 'expertise': 0.32; 'to:addr:python-list': 0.33; 'project': 0.33; "i've": 0.33; 'chris': 0.34; 'there': 0.35; 'subject:What': 0.35; 'using': 0.35; 'idea': 0.36; 'received:google.com': 0.37; 'received:209.85': 0.37; 'think': 0.38; 'mailing': 0.38; 'but': 0.38; 'subject:: ': 0.38; 'sometimes': 0.39; 'received:209': 0.39; 'to:addr:python.org': 0.39; 'basis': 0.62; 'john': 0.62; 'love': 0.62; 'back': 0.63; 'play': 0.64; 'fall': 0.65; 'amazing': 0.69; 'concept': 0.73; 'learned': 0.73; 'subject:this': 0.76; 'game,': 0.84; 'subject:class': 0.84; 'subject:write': 0.84; 'here...': 0.91; 'inheritance,': 0.93; 'subject:best': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=yBayLTXQakBdc/a20bKETm+nDAvsj2PIv3XXFINO16I=; b=YW13Z6pabeva7hmqImjFo2BmZEIZPaA1Liz3M/sQHWxaNeGav1mB5/QeT/RfpS2RXK E40eo2jhRLwRLGOCtyPCNcR0cZ+YlaFrqvZiS1TWKkX0/n9MCRFOZ9L8eNhkdrI26FD+ iYdnMffpVKYBTWL6nRP0zaOy6Mge5LRsDpYmY=
DomainKey-Signature a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=oY5mznKR9M3RynSSfqvDNj5Qak2pVF8uBUTZc4GX7tKBQGsOfasRSmtBMedjl/bM1Y Zdoqt1jDdewEDjBXh/TY3CmIvDpuNSsJr/KZDi5nL3TI4jo4mmf2q7gz1tdTkj2YBtS5 H3iSGkiiGhs/rrEYH6OKgG1RF79+fCeWLPau8=
MIME-Version 1.0
In-Reply-To <fa2ee2a4-f46f-42c7-846c-b854977f9e38@16g2000yqy.googlegroups.com>
References <142e76c3-b304-43ef-af24-919fa6146369@c9g2000yqp.googlegroups.com> <mailman.122.1308411487.1164.python-list@python.org> <fa2ee2a4-f46f-42c7-846c-b854977f9e38@16g2000yqy.googlegroups.com>
Date Sun, 19 Jun 2011 02:34:57 +1000
Subject Re: What's the best way to write this base class?
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
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.124.1308414900.1164.python-list@python.org> (permalink)
Lines 19
NNTP-Posting-Host 82.94.164.166
X-Trace 1308414900 news.xs4all.nl 49041 [::ffff:82.94.164.166]:41273
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:7914

Show key headers only | View raw


On Sun, Jun 19, 2011 at 2:26 AM, John Salerno <johnjsal@gmail.com> wrote:
> The idea of not using a base Character class at all threw me for a
> loop though, so I need to think about that too!
>

It's easy to fall in love with a concept like inheritance, and use it
in all sorts of things. You then have a choice to make: Is the project
you're writing primarily for its own sake, or primarily so that you
can explore the programming concept? There's nothing wrong with
building a mediocre game on a mediocre basis and using it solely to
play around with OO and inheritance and class structures, but if you
want it to be a good game, sometimes you need to go back on decisions
like that.

And that's where mailing lists like this are awesome. I've learned so
much from the wisdom here... there is an amazing amount of expertise
being offered freely!

Chris Angelico

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


Thread

What's the best way to write this base class? John Salerno <johnjsal@gmail.com> - 2011-06-17 21:17 -0700
  Re: What's the best way to write this base class? Chris Angelico <rosuav@gmail.com> - 2011-06-18 14:53 +1000
  Re: What's the best way to write this base class? "bruno.desthuilliers@gmail.com" <bruno.desthuilliers@gmail.com> - 2011-06-18 03:55 -0700
    Re: What's the best way to write this base class? Tim Chase <python.list@tim.thechases.com> - 2011-06-18 06:24 -0500
      Re: What's the best way to write this base class? "bruno.desthuilliers@gmail.com" <bruno.desthuilliers@gmail.com> - 2011-06-18 06:37 -0700
        Re: What's the best way to write this base class? Ian Kelly <ian.g.kelly@gmail.com> - 2011-06-18 08:51 -0600
  Re: What's the best way to write this base class? TheSaint <nobody@nowhere.net.no> - 2011-06-18 19:04 +0800
  Re: What's the best way to write this base class? Mel <mwilson@the-wire.com> - 2011-06-18 10:22 -0400
  Re: What's the best way to write this base class? Ethan Furman <ethan@stoneleaf.us> - 2011-06-18 08:37 -0700
    Re: What's the best way to write this base class? John Salerno <johnjsal@gmail.com> - 2011-06-18 09:26 -0700
      Re: What's the best way to write this base class? Chris Angelico <rosuav@gmail.com> - 2011-06-19 02:34 +1000
      Re: What's the best way to write this base class? Chris Kaynor <ckaynor@zindagigames.com> - 2011-06-19 18:52 -0700
        Re: What's the best way to write this base class? John Salerno <johnjsal@gmail.com> - 2011-06-19 21:04 -0700
          Re: What's the best way to write this base class? Benjamin Kaplan <benjamin.kaplan@case.edu> - 2011-06-20 00:12 -0700
          Re: What's the best way to write this base class? Mel <mwilson@the-wire.com> - 2011-06-20 07:57 -0400
            Re: What's the best way to write this base class? Ian Kelly <ian.g.kelly@gmail.com> - 2011-06-20 12:31 -0600
          Re: What's the best way to write this base class? Terry Reedy <tjreedy@udel.edu> - 2011-06-20 13:58 -0400

csiph-web