On 06/20/2012 12:14 PM, Max Avanov wrote:
I don't used to blindly believe something just because it was written
that way. The docs are not just a collection of essay about web
development. It should be explanatory and clear. That is their main purpose.
I came to Pyramid after three years of Pylons-based web development. It
wasn't hard to test pylons-based applications. So, why the
get_current_request "makes it possible to write code that can be neither
easily tested nor scripted"?

Here's a presentation about API design I wrote recently, part of which discusses why using thread locals are often a bad idea:

https://github.com/mcdonc/apidesign/blob/master/presentation.rst

But I probably test differently than you do, and have different development practices than you. In particular, I probably treat my applications more like libraries than you do, and write more unit tests than functional tests. Thread locals tend to suck when you write actual unit tests or you need to reuse code outside of the request/response context.

- C

--
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to