可不可以说 play framework 约等 tornado+django

2015-01-16 01:13:06 +08:00
 wingyiu
先后接触了j2ee django tornado play2,感觉play2优点很多,兼有rails、强类型、内置性能netty不错的,就是scala、sbt学起来不那么酷

为什么tornado就不能搞成fullstack呢?搭配起来确实很费神,不能拿来即用,快速成型。
4072 次点击
所在节点    Python
8 条回复
zhicheng
2015-01-16 01:20:15 +08:00
作为 tornado 的 contributor ,就喜欢它的轻量,自带 Server 。开发,修改,部署都很简单。
incompatible
2015-01-16 03:13:19 +08:00
在annotation流行的年代 play还在使用convention over configuration
这我实在理解不了
acdea4effdbb420d
2015-01-16 07:35:22 +08:00
annotation是什么东西能指点我去学一下吗?annotation比起convention over configuration高明到哪里去了?
mqingyn616
2015-01-16 10:02:43 +08:00
https://github.com/mqingyn/torngas

这个基于tornado的框架,可能满足你即来即用,快速成型的需求,这个更像tornado+django。
wingyiu
2015-01-16 10:58:19 +08:00
@incompatible annotation也是一种约定啊
yakczh
2015-01-16 11:20:23 +08:00
annotation 跟python的 decorator 有什么不同?
format
2015-01-16 13:30:55 +08:00
@yakczh annotation只能在一个类、属性或方法上做一些标记,想要实现复杂的逻辑只能通过其他方法。 decorator不一样,可以做很多事。
crazybubble
2015-01-19 08:53:54 +08:00
@yakczh annotation本身只用做标记,annotation要加上AOP才能实现像python decorator那样的功能

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/162562

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX