Message from discussion
Private methods
Received: by 10.66.74.72 with SMTP id r8mr5676465pav.32.1349919241428;
Wed, 10 Oct 2012 18:34:01 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.68.204.134 with SMTP id ky6mr6576927pbc.1.1349919241413; Wed,
10 Oct 2012 18:34:01 -0700 (PDT)
Path: jt13ni2809pbb.1!nntp.google.com!kr7no12896088pbb.0!postnews.google.com!p5g2000pbs.googlegroups.com!not-for-mail
Newsgroups: comp.lang.python
Date: Wed, 10 Oct 2012 18:34:01 -0700 (PDT)
Complaints-To: groups-abuse@google.com
Injection-Info: p5g2000pbs.googlegroups.com; posting-host=132.234.83.56; posting-account=rYyWJQoAAACVJO77HvcyJfa3TnGYCqK_
NNTP-Posting-Host: 132.234.83.56
References: <1krpbz9.1wge3j11123k2vN%real-not-anti-spam-address@apple-juice.co.uk>
<mailman.1994.1349790529.27098.python-list@python.org> <1krpdak.u0qy9e1a4knspN%real-not-anti-spam-address@apple-juice.co.uk>
<50742FD4.8030007@gmail.com> <mailman.2012.1349802524.27098.python-list@python.org>
<5074b86b$0$6574$c3e8da3$5496439d@news.astraweb.com> <mailman.2016.1349828799.27098.python-list@python.org>
<1krqopm.19fo57y1wri8yaN%real-not-anti-spam-address@apple-juice.co.uk>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11
(KHTML, like Gecko) Chrome/23.0.1271.17 Safari/537.11,gzip(gfe)
Message-ID: <aced18f9-785e-4bb6-a403-2203044a4ec7@p5g2000pbs.googlegroups.com>
Subject: Re: Private methods
From: alex23 <wuwe...@gmail.com>
Injection-Date: Thu, 11 Oct 2012 01:34:01 +0000
Content-Type: text/plain; charset=ISO-8859-1
On 10 Oct, 17:03, real-not-anti-spam-addr...@apple-juice.co.uk (D.M.
Procida) wrote:
> It certainly makes it quick to build a class with the attributes I need,
> but it does make tracing logic sometimes a pain in the neck.
>
> I don't know what the alternative is though.
Components.
The examples are in C++ and it's about game development, but I found
this article to be very good at explaining the approach:
http://gameprogrammingpatterns.com/component.html
I've become a big fan of components & adaptation using zope.interface:
http://wiki.zope.org/zope3/ZopeGuideComponents