[Twisted-Python] Re: PyHeartbeat cookbook recipe

James Y Knight foom at fuhm.net
Fri Sep 17 08:24:48 MDT 2004


On Sep 17, 2004, at 2:28 AM, Nicola Larosa wrote:
>> One comment though - it'd be better to use reactor.listenUDP and
>> reactor.run() directly for simplicity's sake, the extra abstraction 
>> layers
>> of services and application just make the example harder to 
>> understand.
>
> I thought about that, and concluded that the recipe would come out 
> longer
> and less structured that way, and that it would be best to directly 
> show
> people the "right" way of setting up things.
>
> Maybe it's just that I'm now so accustomed to think in terms of app and
> services, that it's harder to go back to the old way.

I agree -- I think it's not a good idea to make all the examples use 
reactor.run() and then when someone actually wants to write a program 
say "well gee now why the heck are you using *that*??"

James





More information about the Twisted-Python mailing list