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


Groups > comp.lang.python > #9014

more advanced learning resources (code structure, fundamentals)

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.news-service.com!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <bounces@nabble.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'method,': 0.07; 'subject:code': 0.07; 'python': 0.08; 'all?': 0.09; 'context:': 0.09; 'decorator': 0.09; 'okay': 0.09; 'url:%28': 0.09; 'url:%29': 0.09; 'examples': 0.12; 'classes?': 0.16; 'concepts.': 0.16; 'helpful,': 0.16; 'instantiate': 0.16; 'message- id:@talk.nabble.com': 0.16; 'nabble.com.': 0.16; 'received:192.168.236': 0.16; 'received:192.168.236.156': 0.16; 'received:216.139': 0.16; 'received:216.139.236': 0.16; 'received:isper.nabble.com': 0.16; 'received:nabble.com': 0.16; 'url:nabble': 0.16; 'url:old': 0.16; 'class,': 0.16; 'classes,': 0.16; 'static': 0.16; 'programming': 0.18; 'example.': 0.19; "haven't": 0.21; 'trying': 0.23; 'archive': 0.23; 'code': 0.24; 'byte': 0.25; 'modules': 0.25; "i'm": 0.27; 'pass': 0.28; 'language.': 0.28; 'toward': 0.29; 'code,': 0.29; 'classes': 0.30; 'subject:learning': 0.30; 'source': 0.32; 'certainly': 0.32; 'overview': 0.32; 'team,': 0.32; 'list': 0.32; 'too': 0.32; 'it.': 0.33; 'reference': 0.33; "i've": 0.33; 'to:addr:python-list': 0.34; 'decide': 0.34; 'points': 0.34; 'however,': 0.34; 'someone': 0.34; 'starting': 0.35; 'typical': 0.35; 'running': 0.35; 'charset :us-ascii': 0.36; 'some': 0.37; 'but': 0.37; 'could': 0.37; 'received:192': 0.38; 'too,': 0.38; 'something': 0.38; 'hello,': 0.38; 'think': 0.38; 'mailing': 0.38; 'perhaps': 0.39; 'should': 0.39; 'help': 0.39; 'basic': 0.39; 'to:addr:python.org': 0.39; 'where': 0.40; 'background': 0.40; 'stop': 0.61; 'john': 0.62; 'vary': 0.64; 'view': 0.67; 'show': 0.67; 'url:%1': 0.68; 'online': 0.70; 'programs,': 0.80; 'inheritance,': 0.93
Date Thu, 7 Jul 2011 01:59:35 -0700 (PDT)
From "John [H2O]" <washakie@gmail.com>
To python-list@python.org
Subject more advanced learning resources (code structure, fundamentals)
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-Nabble-From washakie@gmail.com
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.734.1310029178.1164.python-list@python.org> (permalink)
Lines 37
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1310029178 news.xs4all.nl 21845 [2001:888:2000:d::a6]:39181
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:9014

Show key headers only | View raw


Hello,

I've been programming in Python for a few years now. I have read most the
typical learning resources, such as 'Dive Into Python', 'A Byte of Python',
etc. In general I feel I have a good overview of the language. However, as I
advanced toward trying to create more OO styled programs, I feel I am
lacking some background on basic concepts.

I have read 'Coding' and 'Beautiful Code', and while these provide good
information on how to style and think about code, they haven't help me
design classes, think about where and when to use inheritance, decorators,
etc. The point is, most examples stop at demonstrating a single class, or
show a trivial decorator example. What I am after is something that will
help me design a program from scratch.

What are the key points to the classes? Is it okay to reference or pass
classes to instantiate a class? When would I want to use a decorator? How to
decide which should be a static method, and if I need them at all?

I know a lot of this would come from experience of working in a team, but
unfortunately, I'm mostly running solo. I am starting to look more and more
at source code too, which I find helpful, but the styles of programming vary
significantly. Perhaps someone could say which modules have nice 'exemplary'
code worth learning from?

So, if someone has a good book or online reference, please point me to it.
Other ideas too are most certainly welcome!

Best,
john


-- 
View this message in context: http://old.nabble.com/more-advanced-learning-resources-%28code-structure%2C-fundamentals%29-tp32011481p32011481.html
Sent from the Python - python-list mailing list archive at Nabble.com.

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


Thread

more advanced learning resources (code structure, fundamentals) "John [H2O]" <washakie@gmail.com> - 2011-07-07 01:59 -0700
  Re: more advanced learning resources (code structure, fundamentals) Mel <mwilson@the-wire.com> - 2011-07-07 07:04 -0400

csiph-web