Do you like Twisted?
Posted
by Luca
on Stack Overflow
See other posts from Stack Overflow
or by Luca
Published on 2010-03-31T12:11:48Z
Indexed on
2010/03/31
12:13 UTC
Read the original article
Hit count: 321
I use Python Twisted for web development, and I don't like it?
I know async programming is a great idea, I know there are may async web servers now, I know it's the only way to solve some problems you'd have with threads but I don't like.
The problem is that, you're forced to program in a twisted way. So, the architecture you have in mind, very often have to be modified to fit the way twisted works. The architecture have to follow the technology, I don't think this is good.
When we use callback in javascript, we don't have too many difficulties: things are usually simpler, we use a callback in response to an Ajax call.
But in a server web app things are, very often, a bit more complex. Writing chain of callbacks don't seem to me a wonderful way of programming. The code is not simple, and so it is difficult to understand and to maintain. Writing twisted code we very often lost the linear intuitive idea of the algorithm we wanted to implement, especially when things grow in complexity.
What's your point of view?
© Stack Overflow or respective owner