如何确定新ASP.NET项目的设计模式? [英] How to decide a design pattern for a new ASP.NET project?

查看:80
本文介绍了如何确定新ASP.NET项目的设计模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我需要一个帮助。基本上我是.net应用程序的新手。我正在尝试开发一个会计目的的应用程序。我完全混淆了如何使用设计模式..MVC更喜欢。我必须在桌面和移动应用程序中使用此应用程序。应该更安全。所以请指导我如何设计项目



什么我试过了:



数据库-PostgreeSql



申请将有两个部分 - < br $>
第一部分 - 通过网页访问客户

第二部分 - 只有我们(公司)可以进行所有处理的后端

客户注册后执行初始设置 - 在会计软件中创建帐户并创建会计科目表

1.查看和处理文档

2会计 - 条目将在应用程序中传递,并将导出到会计软件

Hi all, I need a help..Basically i'm new to the .net application.Here am trying to develop an application for Accounting Purpose.Am totally confused that how can I use the design pattern..MVC is preferring. I have to use this app both in Desktop and as a mobile app.App should be more secure.So please guide me how to design the project

What I have tried:

Database-PostgreeSql

Application will have two parts –
Part I – Accessible to the client through the web page
Part II – Back-end accessible only to us (Company) where all the processing is carried out
Perform the initial setup once the client is registered – create the account in the accounting software and create the chart of accounts
1.Review and process documents
2. Accounting – the entries will be passed in the application and will be exported to the accounting software

推荐答案

我担心你在这里有一些错觉。你不认为应用程序架构被简化为从已知模式列表中选择一些设计模式吗?如果是这样,那你就严重错了。即使选择一组使用的模式(但是架构和设计模式)也没有定义架构或设计。是的,MVC在您的情况下似乎是一个不错的选择,但即便如此,根据您的信息也不能100%确定。



更重要的是,这不会是一切。该体系结构不是项目列表或带有框和箭头的图片。这是一个迭代过程,应该支持所有阶段的应用程序开发。关于应用程序的主要设计元素可以说同样的事情。



另外,你必须意识到术语MVC有两个不同的含义:1) 架构模式 ; 2)可用 ASP.NET框架



许多着名的建筑和设计模式本身都很好。与此同时,我可以清楚地看到与他们相关的社会因素的负面影响;特别是,可以在本论坛的查询者开发的项目中看到。对于许多人来说,他们变得像 Procrustean bed 。请看我过去的答案: 请建议我一些带有设计模式的基本C ++项目



我想说,从设计模式到项目架构/设计的模式(而不是从项目目标出发)可以被视为另一个 反模式 。 :-)



这篇文章不能假装是关于项目开发或开发方法组织的手册,但至少它可以帮助你开发一些与之相关的批判性思维这个主题。



-SA
I'm afraid that you have certain delusion here. Don't you think that the application architecture is reduced to the choice of some design pattern from the list of known patterns? If so, you are gravely mistaken. Even a choice of a set of patterns to use (but architectural and design ones) doesn't define an architecture or design. Yes, MVC seems to be a good choice in your case, but even that cannot be said with 100% certainty based on your information.

More importantly, that would not be all. The architecture is not a list of items or a picture with boxes and arrows. This is an iterative process which should support the application development on all stages. The same thing can be said about the main design elements of the application.

Also, you have to realize that the term "MVC" has two different meanings: 1) architectural pattern; 2) available ASP.NET framework.

Many well-known architectural and design patterns are quite good by themselves. At the same time, I can clearly see negative impact of the social factors related to them; in particular, it can be seen on the projects developed by the inquirers of this forum. For many, they become something like a Procrustean bed. Please see my past answer: Please suggest me some basic C++ project with design patters.

I would say, the pattern of going from the design patterns to the project architecture/design (instead of going from the project goals) can be considered as yet another anti-pattern. :-)

This post cannot pretend to be a manual on the organization of project development or development method, but at least it can help you to develop some critical thinking related to this subject.

—SA


这篇关于如何确定新ASP.NET项目的设计模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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