网络开发。 RAD Web 应用程序开发框架。在最短的时间内( Yii vs. Django )
我用谷歌搜索了一下,没有找到什么有趣的东西,现在我和我的团队了解/部分了解(Codeigniter、Yii)以及 Django(Python 框架),现在在使用 codeigniter 一年后,我们注意到我们效率不高,我们仍然需要编写大部分内容(注释系统) 、图片上传、评分、投票等)反复进行(可以称之为渐进增强)。
现在,我们已经开始在 Yii 中进行开发,我们正在体验它,这非常棒,但我发现我更喜欢 Python,而不是 PHP,但由于截止日期和时间短缺,我现在不能要求我的团队切换到它。那么,我想做的是说服自己,这 3 个框架(Codeigniter、Yii、Django)中的哪一个能够为我们提供最快的交付时间?
我个人的看法是 Yii & Django 在某种程度上是平等的,但由于大号的可用性。包 Django 包,我们将能够越来越快地开发,尽管 Yii 也有它的扩展 Yii Extensions 但目前数量不多,只有少数几个是高度稳定的,而其他的仍然存在 bug (也许这一切都是因为我对 PHP 和 PHP 框架的了解比 Python 框架和 Django 更高)所以,如果有从 PHP 过渡到基于 Python 的框架的实际经验的人能够对此有所了解,我会很高兴!
编辑:我正在寻找一位在 Django 和 Yii 框架中开发过(或至少使用过它们)的程序员的实际回应,他/她可以验证典型 CMS/门户/评论网站/的开发时间Digg 克隆 ... 类型的 Web 应用程序比其他应用程序花费的时间更少,因为时间是我担心学习语言/功能/好处并不那么重要,可扩展性也取决于适当的数据库优化和其他架构更改的问题,我想强调我没有考虑 Ruby on Rails,因为我不想仅仅为了一个框架而学习 Ruby,而是考虑到所有其他因素(人力/技能/数据库设计),我对 Django 与 Yii 的最短上市时间感兴趣)平等,请帮助,我已经考虑这个问题一个星期了!
I googled it and found nothing of much interest , right now me & my Team know/partially know ( Codeigniter, Yii) and also Django (Python Framework) , now after working with codeigniter for past 1 year we have noticed that we are not that efficient and we still have to code most of the stuff( comment system, image upload, rating, voting etc. ) repeatedly ( you can call it progressive enhancement ) .
Now , we have started development in Yii and it's superb we are experiencing it but what I find is that I love Python more than PHP , but due to deadlines and time shortage , I cant ask my team to switch to it now . SO, what I'm trying to do is convince myself that which framework among these 3 ( Codeigniter, Yii, Django ) would give us fastest delivery times ?
My personal opinion is that Yii & Django are somewhat equal but due to avilability of large no. of Packages Django Packages , we will be able to develop quicker and faster , although Yii has it's extensions too Yii Extensions but at this time there are not many and only few of them are highly stable , while others have bugs still (Maybe all this is due to my higher knowledge of PHP & PHP frameworks than Python frameworks & Django ) so, I would be glad if someone who has some practical experience transitioning from PHP to Python based frameworks could shed some light on this !
Edit: I'm looking for a practical response from a programmer who has developed in both frameworks Django vs. Yii ( or has atleast played with them ) and he/she can verify that development time for a typical CMS/Portal/Review Website/Digg clone ... type Web App takes less time in one than other , as Time is what I worry about learning the language / features/ benefits are not that important , scalability too ius a matter of proper DB optimization and other architectural changes , also i would like to highlight that I'm not considering Ruby on Rails as I dont want to learn ruby just for a framework , rather I'm interested in Django vs. Yii in terms of shortest time to market given all other factors ( manpower/skill set/DB design) equal , Kindly help , I have been thinking about this for a week now !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Vivek,这是很难给出比“视情况而定”更好的答案的问题之一。就我个人而言,我认为语言及其生态系统是选择中非常重要的因素,也许比具体框架更重要。
为什么会这样呢?正如您所提到的,您发现您必须从头开始编写大量代码,即使您认为框架可以提供这些代码。 这是我们编程生活的一个基本事实 - 无论框架/库如何,最终我们都会编写自己的一些功能,因为:
所以最终,随着应用程序变得越来越复杂,我们会发现自己实现了越来越多的功能,因为现有的库不够灵活。我认为最近 Python 中 Web 微框架的成功也源于同样的原因。
这就是为什么基础很重要,而你的案例的基础是 PHP 及其生态系统与 Python 及其生态系统。两种语言都有大量可用的库代码,但是您认为哪种语言更适合作为一种语言使用?您和您的合作开发者最了解哪一个?您会发现哪种语言更容易雇用新开发人员(如果适用)?
PS 我对 PHP 不太了解,但是对于 Python/Django,除了 Django Packages 之外,还有 Pinax。
Vivek, this is one of those questions to which it's hard to give an answer better than "it depends". Personally, I think that the language and its ecosystem is a very important factor in the choice, perhaps more so than the specific framework.
Why so? As you mentioned, you found out that you had to write a lot of code from scratch even though you thought a framework would provide it. This is a basic fact of our programming life - no matter the framework / library, eventually we're going to write some functionality of our own because:
So in the end, as an application becomes more and more complex, we'll find ourselves implementing more and more functionality because the existing libraries just aren't flexible enough. I think that the recent success of web micro-frameworks in Python has its roots in the same cause.
This is why the basis is important, and the basis in your case is PHP and its ecosystem vs. Python and its ecosystem. Both languages have huge amounts of library code available, but which do you find more pleasant to work with as a language? Which is the one you and your co-devs know best? Which is the language for which you'll find it easier to hire new devs (if applicable)?
P.S. I don't know much about PHP, but for Python/Django, apart from Django Packages, there's also Pinax.
从未使用过 Yii 和 Code Igniter,但我来自 CakePHP,现在我在 Django 上工作,我很喜欢它。我可以说,Python 具有更高的测试文化,而 Django 拥有出色的文档。如果您在 github 上搜索 Yii 和 Django,您会发现 191 个项目与 6176 个项目。
恕我直言,Python 比 PHP 好几个数量级,并且平均 Python 代码比平均 PHP 代码更好。
我认为你应该在 Django 和 Rails 或 Sinatra 之间进行选择。 Python 社区比 Ruby 社区更大,但 Rails 项目和开发人员比 Django 更多。
Never used Yii and Code Igniter, but i come from CakePHP and now i work on Django, and i enjoy it. I can say that in Python there's a higher test-culture, and Django has superb docs. If you search for Yii and Django on github, you'll find 191 vs. 6176 projects.
IMHO Python is orders of magnitude better than PHP, and the average Python code is better than the average PHP code.
Your choice should be between Django and Rails or Sinatra, i think. Python community is bigger than Ruby community, instead there are more Rails projects and developers than Django.