社交网站的 Zend、Yii 和 CI
我必须在上述框架之间进行选择来开发大型社交网站。之前在几个项目中使用过 Zend 框架,我对使用它有偏见,但是,我想有一个公正的意见。
我们主要追求性能和可扩展性。
I have to choose between the above mentioned frameworks for developing a big social networking Web site. Having used Zend framework for several projects before, I am biased towards using it, however, I would like to have a fair opinion.
We are mainly looking for performance and extensibility.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
使用你觉得舒服的东西。这是最重要的事情...使用您不理解的工具是没有意义的,因为您的工作效率几乎不高(以及其他问题)...
Use what you're comfortable with. That's the most important thing... There's no sense using a tool you don't understand since you won't be nearly as productive (among other issues)...
我已经使用过 Yii 和 Zend 框架,但是我仍然使用两者的一些部分。 yii 中有一些非常优雅的解决方案。我开始使用 Zend 框架,但后来主要使用 yii,并少量使用 Zend。
I have used both Yii and Zend framework and I still use bits of both however. There are some really elegant solutions in yii. I started using Zend framework but have since swinched to use primarily yii, with sprinklings of Zend.
在我看来,这个案子没有什么对错之分。您应该选择您自己最能开发的框架。您了解得越多,您的应用程序就会越好、性能越好。每个框架都有可能写得快或慢。所以就你的情况来说,选择 Zend 是绝对可以的。请记住,大多数框架都有自己的基准,被誉为性能最佳的解决方案;)
In my opinion there is no right or wrong in this case. You should choose the framework you can develop best yourself. The better you know, the better and more performant your application will be. It is possible to write fast and slow with every framework. So in your case it is absolutly ok to choose Zend. Keep in mind that most of the framework have their own benchmark where it is praised as the best performing solution ;)
然后使用 Zend 框架。可扩展性是 Zend Framework 所赋予的,至于性能则取决于您的编码方式。 Zend Framework 更像是一个 VC,您是实现 M 的那个。因此,使用胖模型和瘦控制器编程逻辑,您应该能够使 Zend Framework 相当快?我确信你可以在那里进行延迟加载并且接近 Yii 的速度(因为 Yii 做了很多延迟加载)。
不知道 CI 是什么。
仅供参考,Yii 的开发速度要快得多。
Use Zend Framework then. Extensibility is a given with Zend Framework and as for performance well it's up to how you code. Zend Framework is more of a VC you're the one that implementing the M. So going with the Fat Model and skinny Controller programming logic, you should be able to make Zend Framework decently quick? I'm sure you can do lazy loading in there and get close to as fast as Yii (since Yii does lots of lazy loading).
No idea what CI is.
Yii is much faster to develop just fyi.