模块化编程和结构化编程

发布于 2024-10-27 13:08:25 字数 500 浏览 0 评论 0原文

我被要求用模块化编程设计一个asp.net网站,但我不知道这实际上意味着什么,他的意思是结构化编程吗?我在模块化编程中发现的一切都与asp.net网站(或其代码)无关在后面)。

有人可以解释一下这意味着什么吗:

我在网站的每个页面上都有一个数据库连接,而不是在全局或 webconfig 页面中有连接字符串?这是否意味着结构化、oop 或模块化?

在没有可加载模块的网站上,您可以通过什么方式实现模块化编程?它只是一个带有一些连接字符串和一些巧妙的编程来制作一些花哨的 html 的网站吗?

我看过其他关于 webparts 和 cms 的帖子,但真的不了解它们?它们相关吗?不确定。

我的网站只是一个社交网站,允许某人登录/创建该网站的帐户,然后转到他自己的个人资料并显示保存到我们数据库中的有关他自己的信息。

据我所知,其中没有任何内容需要模块?

所以这让我思考这是否是一种不同的实际“编程”编写代码的方法?即它是否以不同的方式存储是否以不同的方式引用以不同的方式调用?

I was asked to design a asp.net website with modular programming, yet I have no clue what that actually means, does he mean structured programming?, everything Ive found on modular programming has no relation to an asp.net website (or its code behind).

Could some one explain what it means if:

I have a database connection on each page of the website rather than having the connection string in the global or webconfig page? Does this mean structured or oop or modular?

In what terms could you achieve modular programming with a website that has no loadable modules? Its just a site with a few connection strings and some clever programming to do some fancy html?

Ive seen other posts about webparts and cms but really have no understanding of them? Are they relevant? Unsure.

My site is just a social network site that allows some one to login/create account with the website then go to his own profile and display things about himself that are saved to our database.

Nothing in it requires modules as far as I can tell?

So it makes me think is it a different method of actually "programming" writing the code? i.e is it stored in a different manner is it refrenced in a different manner is called in a different manner?

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

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

发布评论

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

评论(3

寂寞花火° 2024-11-03 13:08:25

在这种情况下,您可以在自己的项目中构造数据访问代码,并将 Web 应用程序称为模块,将数据访问层称为模块。

如果数据访问层很复杂,包含大量实体,您可以将其分解为多个项目(将每个项目视为一个模块)。

In this context, you could structure your data access code in its own project and call the web application a module and the data access layer a module.

If the data access layer is complicated with a good number of entities, you could break that out into several projects (treating each project as a module).

云裳 2024-11-03 13:08:25

我认为您所要求的是以易于扩展和维护的方式对网站进行编码。

I think what's being asked of you is to code the site in such a way that it can easily extended and maintained.

月亮是我掰弯的 2024-11-03 13:08:25

“模块化编程”意味着您编写一个由独立模块构建的应用程序。您拥有哪种类型的应用程序并不重要。只需将其分解为几个逻辑上独立的部分,它们就会成为模块。

"Modular programming" means that you write an application which is build from independent modules. It doesn't matter what kind of application you have. Just break it on several logical independent parts and they'll become modules.

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