TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Tornado 2.1 released

87 点作者 dtwwtd超过 13 年前

5 条评论

LeafStorm超过 13 年前
Tornado is intriguing, but the main thing I don't like about it is how it reinvents the wheel with a lot of its components. For example:<p>- They created a lot of Web-stuff parsing code themselves, when Werkzeug provides a tested and thorough implementation of a lot of that. (Especially routing, regex-based routing just looks horribly kludgy once you have used werkzeug.routing.)<p>- They created their own template language when they could have used Jinja. (In fact, tornado.template is basically a half-as-powerful copy of Jinja.)<p>- They created their own database access layer when they could have used SQLAlchemy instead.<p>Sometimes I think people take the concept of "minimal dependencies" way too far.
评论 #3026432 未加载
评论 #3026201 未加载
rjd超过 13 年前
90% made up my mind to use Tornado for several upcoming projects, would love to hear some comments (good or bad) from anyone thats used it or using it.
评论 #3025430 未加载
评论 #3025336 未加载
评论 #3025475 未加载
评论 #3028331 未加载
评论 #3025229 未加载
评论 #3026609 未加载
评论 #3025411 未加载
oxfordus超过 13 年前
Coming from php(mvc background), the only thing i don't like about tornado is that basically you have a Class per request, currently i'm in a process to refactor this so that:<p>www.site.com/controller/action/params/?vars -&#62; would route to -&#62;<p>class controller(requestHandler):<p><pre><code> def get_action(self, *params, **vars): #do something self.write(response) def post_action2(self, *params, **vars): #.... and so on ....</code></pre>
评论 #3026082 未加载
评论 #3026171 未加载
slig超过 13 年前
For a multiplayer, realtime, text-based game, like a quiz, should I dive in nodejs or Tornado?<p>I know Python but never played with server-side javascript before.
评论 #3026236 未加载
dtwwtd超过 13 年前
I'm especially looking forward to trying the new interface to Twisted and the gen module. I was about to write some async interfaces to things that are currently not - these new modules look like they'll be helping me out quite a bit.