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


Groups > comp.lang.python > #29522

Re: Python presentations

Newsgroups comp.lang.python
Date 2012-09-19 12:43 -0700
References <CAF_E5JZE5pACo2a36WT=eYzikf8HzCfUqateYrSjY8fxP9wr9g@mail.gmail.com> <20120919022003.GB61866@snakebite.org> <mailman.926.1348072945.27098.python-list@python.org>
Subject Re: Python presentations
From 88888 Dihedral <dihedral88888@googlemail.com>
Message-ID <mailman.938.1348083840.27098.python-list@python.org> (permalink)

Show all headers | View raw


andrea crotti於 2012年9月20日星期四UTC+8上午12時42分50秒寫道:
> 2012/9/19 Trent Nelson <trent@snakebite.org>:
> 
> >
> 
> >     FWIW, I gave a presentation on decorators to the New York Python
> 
> >     User Group back in 2008.  Relevant blog post:
> 
> >
> 
> >         http://blogs.onresolve.com/?p=48
> 
> >
> 
> >     There's a link to the PowerPoint presentation I used in the first
> 
> >     paragraph.  It's in .pptx format; let me know if you'd like it in
> 
> >     some other form.
> 
> >
> 
> >     Regards,
> 
> >
> 
> >         Trent.
> 
> 
> 
> 
> 
> Ok thanks a lot, how long did it take for you to present that material?
> 
> 
> 
> Interesting the part about the learning process, I had a similar
> 
> experience, but probably skip this since I only have 30 minutes.
> 
> 
> 
> Another thing which I would skip or only explain how it works are
> 
> parametrized decorators, in the triple-def form they just look to ugly
> 
> 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, 
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. 

It is also user responsible to test and enhance the objects 
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 
animated obects.








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


Thread

Re: Python presentations andrea crotti <andrea.crotti.0@gmail.com> - 2012-09-19 17:42 +0100
  Re: Python presentations 88888 Dihedral <dihedral88888@googlemail.com> - 2012-09-19 12:43 -0700
    Re: Python presentations andrea crotti <andrea.crotti.0@gmail.com> - 2012-09-24 16:42 +0100
  Re: Python presentations 88888 Dihedral <dihedral88888@googlemail.com> - 2012-09-19 12:43 -0700

csiph-web