
1 binux 2013 年 9 月 27 日 我觉得这些框架只有功能多寡的不同,没有模式的不同 从0考虑一个web框架可能有什么: * TCPServer * request,response封装 -- 路由 -- 接口转换 * 模板 * 工具集 -- 数据库接口 -- 各种转换 -- 各种生成器 回头看上面的几个框架,除了tornado自带了一个与众不同的TCPServer之外,三者没有任何不同 只不过是API以及utils功能强弱的不同而已 |
3 hustlzp OP 恩,现在的框架的基本组成部分都是差不多的了,RoR带起来的MVC风。 |
6 no13bus 2013 年 9 月 27 日 web2py算啥 |
7 fanzeyi 2013 年 9 月 27 日 via iPad quixote ... |
8 humiaozuzu 2013 年 9 月 28 日 可以,他们的适用场景不同,以及灵活性(于是这个不同口味的人选择就不同了) Django 就像 IDE 给你的插件(admin,orm,route 等)没法换,但是 Flask 像 Editor 有很多供选择的 batteries。 以及,Flask 这货在 app 大之后,需要开发者自己有一定的经验和构架的能力才可以很好的控制各种模式: ### app framework - app factory - blueprint - api/template error handling - development/testing/staging/production server configurations - db logic - db logic error handing - controller - delayed jobs - json serialization/template rendering ### management - database miggration - app manage commands ### testing - moking/testing - profiling(performance testing) - security testing ### deployment/operation/monitor - deployment automation - manage automation - app exception monitor - app/db performance monitor |
9 hustlzp OP @humiaozuzu 感谢分享! |