在线发布WEB2项目还是等到MVC框架准备好?

发布于 2024-11-03 05:06:44 字数 587 浏览 1 评论 0原文

在过去的两年里,我学习了 phpMySQL 来构建我的项目。我来自 ActionScript3 以及面向对象编程,但我是自学成才的,不幸的是我不知道编程的最深层次的部分。

现在我写的项目已接近尾声,可以在线发布,但它都是用程序 php 风格编写的,只有一个用于会话的类和其他东西。

一切都运行得很快并且没有问题(就我所见),但如果我需要向网站添加一些功能,例如用户板,添加使用其他帐户(facebook、openid 等)登录,我认为这会很困难被改变。

我知道有像 Cakephp、zend 和许多其他 MVC 框架之类的解决方案,对于优化开发时间很有用,所以我只是想知道我是否应该从那个基地开始,否则我可以在将来转到它。

当前的数据库与 MVC 准备好的情况没有太大不同,有些东西需要改变,我不知道到底涉及什么,我不知道将来是否有可能改变数据库结构添加了数百万行(我希望!)。

所以我的问题是:

我应该在线发布我的 web2 项目还是应该等待重写它的 MVC 框架 准备好?

in the last 2 years I've studied php and MySQL in order to build my project. I come from ActionScript3 and so Object Oriented Programming, but I'm an self-taught, and unfortunately I don't know the deepest parts of programmation.

Now the project I've written is near to the end and It could be published online, but It's all written in procedural php style, only with a class for the session and something.

All works fast and without problems (for what I can see), but if I need to add some functions to the site, like user board, add login with other accounts (facebook, openid, etc.), I think that would be difficult to be changed.

I know there are solutions like cakephp, zend and many other MVC frameworks, useful to optimize develop time, so I was just wondering if I should start with that base or I could pass to it in the future.

The current database is not so different from how it should be to be MVC ready, some things need to be changed and I don't know what exactly involve this, I don't know if It's possible to change the database structure in the future with millions of rows added (I hope!).

So my question is:

Should I publish my web2 project online or should I wait to rewrite it MVC framework ready?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

吹泡泡o 2024-11-10 05:06:45

实际上,当我使用旧网站并想将它们转换为 cakePHP 时,我自己也曾质疑过这一点。当你第一次看到这样一个规模相当大的项目时,可能会感到不知所措,但一旦你投入其中,你实际上可以从中获得一些乐趣。

示例:由于每天构建网站可能是乏味且单调的,因此您实际上可以通过一些新技术来享受这个迁移过程。通过编写一系列将数据处理为我需要的格式的 JavaScript 正则表达式,我能够将 9 表数据库转换为 MVC 就绪型。

您可能需要一两周的时间才能完成此任务,但如果您想扩展自己的技能,您可能会喜欢它。

当然,对于 javascript 来说,使用数百万个表条目执行此类流程可能有点困难,但如果能够在不到一周的时间内编写 MVC 应用程序,您可能会在不到一个月的时间内重建站点(可能)。

祝你好运。

I have actually questioned this myself when taking old websites and wanting to convert them to cakePHP. When you first look at a decent size project like that, it can be overwhelming but once you crack into it you can actually have some fun with it.

Example: Since, building websites everyday can be tedious and monotonous, you can actually enjoy this migration process with some new techniques. I was able to convert a 9 table database to be MVC ready by writing a series of javascript regular expressions that process the data into the format that I needed.

It could take you a week or 2 to accomplish this but if you are looking to expand your skills, you might enjoy it.

Of course doing these kinds of processes with millions of table entries might be a bit much for javascript, but with the ability to write MVC apps in less than a week, you might have your site rebuilt in less than a month (MIGHT).

Good luck.

救赎№ 2024-11-10 05:06:44

尽早发布看看是否有效。无论如何,如果没有用户,你的项目就毫无价值。您可以在测试环境中在幕后重写它。

Publish early to see if it works. Your project is worthless without users anyway. You can rewrite it behind the scenes in your testing environment.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文