我应该使用框架还是写我自己的MVC? [英] Should I use a framework or write my own MVC?

查看:159
本文介绍了我应该使用框架还是写我自己的MVC?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



问题是系统目前正在被使用,我不能改变界面(它在框架:s)也有一些我需要处理自己的事情,如密码生成,登录和用户级别。



我已经有了模型侧面的MVC,所以我想知道是值得使用一个框架像Zend框架或CakePHP或只是编写自己的View和控制器来解决这个问题吗?



我将慢慢工作,我不知道如果我使用一个现成的框架,我将能够这样做。

解决方案

通常我会反恐并建议不要再把另一个Web MVC框架带入这个世界,但是我们应该注意到我们的主人Joel和Jeff对此事有另一种意见:



来自Joel:防御重塑车轮
来自Jeff:不要重新发明车轮



最后一个想法:如果这是一个单人项目,那么你只会影响自己的选择。如果一个团队开发一个长寿命的产品,我的阻力会上升。如果您自己动手,您可能会对团队和客户造成损害。


I have a project that is currently all over the place and i'm thinking of making it MVC.

The problem is that the system is currently being used and I can not change the interface (It's in frames :s) Also there are certain things that I will need to handle myself such as password generation, login and user levels.

I already have the model side down of the MVC so I am wondering is it worth using a framework like Zend Framework or CakePHP or just to code my own View and Controllers to work around this problem?

I am going to have to work this in slowly and I'm not sure if i will be able to do that if I use one of the ready made frameworks.

解决方案

Normally I would recoil in horror and advise against bringing yet another web MVC framework into the world, but it's fair to note that our hosts Joel and Jeff have another opinion on the matter:

From Joel: In Defense of Reinventing the Wheel From Jeff: Don't Reinvent the Wheel

One last thought: If it's a one-person project, then you only affect yourself with this choice. My resistance would spike up if a team developing a long-lived product was involved. You may do a disservice to the team and the customer if you roll your own.

这篇关于我应该使用框架还是写我自己的MVC?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆