我应该首先设计应用程序或型号(数据库)吗? [英] Should I design the application or model (database) first?

查看:112
本文介绍了我应该首先设计应用程序或型号(数据库)吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正准备开始在业余时间开始建立一个新的网络项目,以实现一个在我头上弹起一段时间的想法。



我是否首先建立模型,然后是消费应用程序,或者其他方式更好。



最佳做法是什么?你会建立什么首先,为什么?



我想一般来说,应用程序通常应该推动模型,但是像许多网站这样的应用程序真的没有太多,没有模型。



由于某种原因,我觉得有时候可以更容易地考虑模型,因为应用程序只是对模型的操作。这是一个糟糕的思考方式吗?



每个选项有什么优点/缺点?

解决方案

当您自己构建整个应用程序时,我将从用户开始。用户想要什么?他们需要什么信息?这应该驱动应用程序和模型的设计,而不是相反。当模型首先设计时,有一种直接暴露用户的诱惑,这很少有意义。


I am getting ready to start building a new web project in my spare time to bring to fruition an idea that has been bouncing around my head for a while.

I have never gotten down whether I am better off first building the model and then the consuming application or the other way around.

What are the best practices? What would you build first and why?

I imagine that in general the application should generally drive the model, however the application like many websites really doesn't do much without the model.

For some reason I find it easier at times to think in terms of the model since the application is really just actions on the model. Is this a poor way of thinking about things?

What advantages/disadvantages does each option have?

解决方案

When you're building the whole application yourself, I would start with the user. What does the user want? What information do they need? That should drive the design of the application and model, not the other way round. When the model is designed first, there is a temptation to expose the user to it directly, which will rarely make sense.

这篇关于我应该首先设计应用程序或型号(数据库)吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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