Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; 'syntax': 0.03; 'subject:Python': 0.05; 'decorator': 0.07; 'emulate': 0.07; 'ugly': 0.07; 'unittest': 0.07; 'python': 0.09; 'enhancements': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'programmer': 0.11; '(but': 0.15; 'non-trivial': 0.16; 'sugar': 0.16; 'url:blogs': 0.16; 'wrappers': 0.16; 'module,': 0.17; 'skip': 0.17; 'written': 0.20; 'import': 0.21; 'decorators': 0.22; 'minutes.': 0.23; 'cc:2**1': 0.24; 'testing': 0.24; 'least': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'received:209.85.212': 0.28; 'objects': 0.29; 'probably': 0.29; 'symbol': 0.33; 'form.': 0.33; 'another': 0.33; 'received:google.com': 0.34; 'thanks': 0.34; 'whatever': 0.35; 'adds': 0.35; 'from:addr:googlemail.com': 0.35; 'process,': 0.35; 'similar': 0.35; 'received:209.85': 0.35; 'explain': 0.36; 'but': 0.36; 'test': 0.36; 'should': 0.36; 'york': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'think': 0.40; 'easy': 0.60; 'link': 0.60; 'first': 0.61; 'back': 0.62; 'url:p': 0.63; 'worth': 0.63; 'love': 0.63; 'more': 0.63; 'gave': 0.65; 'andrea': 0.84; 'fact.': 0.84; 'powerpoint': 0.84; 'reminds': 0.84; '8bit%:70': 0.91; 'received:209.85.212.56': 0.91; 'lot,': 0.95 Newsgroups: comp.lang.python Date: Wed, 19 Sep 2012 12:43:57 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=123.192.32.215; posting-account=5JdMBQoAAABHnS4mjpqEzxnmWtgiiVNw References: <20120919022003.GB61866@snakebite.org> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 123.192.32.215 MIME-Version: 1.0 Subject: Re: Python presentations From: 88888 Dihedral To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: python-list X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 77 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348083840 news.xs4all.nl 6978 [2001:888:2000:d::a6]:51488 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:29522 andrea crotti=E6=96=BC 2012=E5=B9=B49=E6=9C=8820=E6=97=A5=E6=98=9F=E6=9C=9F= =E5=9B=9BUTC+8=E4=B8=8A=E5=8D=8812=E6=99=8242=E5=88=8650=E7=A7=92=E5=AF=AB= =E9=81=93=EF=BC=9A > 2012/9/19 Trent Nelson : >=20 > > >=20 > > FWIW, I gave a presentation on decorators to the New York Python >=20 > > User Group back in 2008. Relevant blog post: >=20 > > >=20 > > http://blogs.onresolve.com/?p=3D48 >=20 > > >=20 > > There's a link to the PowerPoint presentation I used in the first >=20 > > paragraph. It's in .pptx format; let me know if you'd like it in >=20 > > some other form. >=20 > > >=20 > > Regards, >=20 > > >=20 > > Trent. >=20 >=20 >=20 >=20 >=20 > Ok thanks a lot, how long did it take for you to present that material? >=20 >=20 >=20 > Interesting the part about the learning process, I had a similar >=20 > experience, but probably skip this since I only have 30 minutes. >=20 >=20 >=20 > Another thing which I would skip or only explain how it works are >=20 > parametrized decorators, in the triple-def form they just look to ugly >=20 > to be worth the effort (but at least should be understood). I think the decorator part is reasonable in testing and prototyping. Every layor of some decorator just adds more overheads, therefore,=20 the syntax sugar of the symbol @ just reminds the programmer the fact. Acctually writing better wrappers for non-trivial enhancements to objects or functions should be practiced by professionals. It is easy to import objects written by others in python.=20 It is also user responsible to test and enhance the objects=20 from others by decorators, the unittest module, or whatever suitable. I love to play with functions with a varable representing the time in writing computer games that emulate hundreds to thousands of=20 animated obects.