V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
wingyiu
V2EX  ›  Python

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

  •  
  •   wingyiu · 2015-01-16 01:13:06 +08:00 · 4059 次点击
    这是一个创建于 3382 天前的主题,其中的信息可能已经有所发展或是发生改变。
    先后接触了j2ee django tornado play2,感觉play2优点很多,兼有rails、强类型、内置性能netty不错的,就是scala、sbt学起来不那么酷

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

    这个基于tornado的框架,可能满足你即来即用,快速成型的需求,这个更像tornado+django。
    wingyiu
        5
    wingyiu  
    OP
       2015-01-16 10:58:19 +08:00
    @incompatible annotation也是一种约定啊
    yakczh
        6
    yakczh  
       2015-01-16 11:20:23 +08:00
    annotation 跟python的 decorator 有什么不同?
    format
        7
    format  
       2015-01-16 13:30:55 +08:00
    @yakczh annotation只能在一个类、属性或方法上做一些标记,想要实现复杂的逻辑只能通过其他方法。 decorator不一样,可以做很多事。
    crazybubble
        8
    crazybubble  
       2015-01-19 08:53:54 +08:00
    @yakczh annotation本身只用做标记,annotation要加上AOP才能实现像python decorator那样的功能
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2957 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 49ms · UTC 03:01 · PVG 11:01 · LAX 20:01 · JFK 23:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.