我应该使用框架还是编写自己的 MVC?

Should I use a framework or write my own MVC?(我应该使用框架还是编写自己的 MVC?)
本文介绍了我应该使用框架还是编写自己的 MVC?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我有一个项目目前到处都是,我正在考虑把它做成 MVC.

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

问题是系统目前正在使用中,我无法更改界面(在框架中:s)此外,我还需要自己处理某些事情,例如密码生成、登录和用户级别.

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.

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

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.

推荐答案

通常我会害怕地退缩并建议不要将另一个 Web MVC 框架引入世界,但公平地注意到我们的主持人 Joel 和 Jeff 有不同的意见关于此事:

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:

来自乔尔:为重新发明轮子辩护来自杰夫:不要重新发明轮子

最后一个想法:如果是一个人的项目,那么这个选择只会影响你自己.如果涉及到一个开发长寿命产品的团队,我的抵抗力会飙升.如果你自己动手,你可能会对团队和客户造成伤害.

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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)