哪种n层结构最适合工作 [英] which n-tier structure is perfect for working

查看:67
本文介绍了哪种n层结构最适合工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一个Web应用程序中使用多个项目是最好的方法

using more then one project in one web application is best approach or not

推荐答案

如何解决给定问题由以下方式定义:

0)功能要求

1)接口要求

2)建筑

3)自己的技能水平和发展成熟度

我们无法回答您的问题,因为哪个最好"是一个主观问题.对我而言,最佳"可能对您而言并非最佳".

作为程序员的一部分,是能够自己做出此类决定(当管理人员失败或不在乎时).
How you approach a given problem is defined by the following:

0) Functional requirements

1) Interface requirements

2) Architecture

3) Your own skill level and development maturity

We can''t answer your question because "which is best" is a subjective question. What''s "best" for me may not be "best" for you.

Part of being a programmer is being able to make these kinds decisions on your own (when someone in management either fails to or doesn''t care to).


我总是有很多项目取决于我要完成的工作.这确实是个人选择-尽管我认为最好将解决方案分为可管理的部分,但没有对与错.例如,我将有一个用于Web应用程序的项目,一个用于通用代码的项目,一个用于控件的项目等,等等.

这与n层不同. N层是指将项目分为一个或多个不同的层,每个层提供整个解决方案的不同方面.这可以很简单,例如数据库,读取数据的项目,定义围绕数据的业务规则的项目以及表示层.

同样,没有硬性规定.您需要根据需要做出决定.
I always have a number of projects depending on that I''m trying to accomplish. It''s really personal choice - there is no right and wrong though I think it best to divide a solution into manageable chunks. For instance, I''ll have a project for the web application, a project for common code, one for controls, etc, etc.

That is not the same as n-tier. N-tier refers to segregating a project into one or more distinct layers each of which provides a different aspect of the overall solution. This can be as simple as Database, a project to read that data, a project that defines the business rules surrounding the data and a presentation layer.

Again, no hard and fast rules; you need to make a decision based upon the requirements to hand.


这篇关于哪种n层结构最适合工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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