软件分析模式 - 优点和缺点

发布于 2025-01-01 02:23:55 字数 143 浏览 4 评论 0原文

使用软件分析模式(一般而言)有哪些优点和缺点?

我需要这些信息用于学习目的。这个问题是在软件建模主题的讲座上提出的,因此我认为它可以再次出现。

不管怎样,这个问题引起了我的兴趣,因为我知道使用分析模式的优点是什么(主要是我认为)。但缺点呢?

What are pros and cons of using software analysis patterns (in general)?

I need this information for study purposes. Such question was asked at the lecture of the Software Modeling subject, therefore I think it can come back again.

Anyway, this question intrigued me, because I know what pros of using analysis pattern would be (mostly I think). But what about cons?

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

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

发布评论

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

评论(1

美人迟暮 2025-01-08 02:23:55

这更像是使用正确的工具来做正确的工作。

因此,优点和缺点取决于您在设计中使用它的程度如何?

这些模式所提供的帮助之一是我们不需要重新发明轮子。有人已经找到了问题的解决方案并将其发布供其他人使用。

因此,优点如下(但不限于):

  • 时间浪费更少。
  • 我们无需花费太多精力即可获得强大的解决方案。
  • 高度可扩展。
  • 开发人员之间的共识。

如果您将其用于过度工程,则可以总结缺点。即,当可以避免使用模式或使用 Pattern1(比如说)代替 Pattern2(比如说)时,会使简单的问题变得更加复杂。

一般来说,这取决于您如何使用它们。

您可能希望查看以下链接:

设计模式类别

函数式编程会取代 GoF 设计模式吗?

Java 核心库中的 GoF 设计模式示例

It's more like using Right tool for Right Job.

So, pros and cons depend on how well did you use it in your design?

One help what these patterns provide that we need not reinvent the wheel. Someone has already found solution for a problem and published it for others to use.

Hence, Pros are a follows (but not limited to)

  • Time is less wasted.
  • We get robust solution without spending much effort.
  • Highly scalable.
  • Common understanding among developers.

Cons can be summarized if you use it for over engineering. i.e. making a simple problem more complex when pattern use can be avoided OR using a Pattern1(say) in place of Pattern2(say).

In general, It depends on how you use them.

You might like see following links:

Categories of design patterns

Does functional programming replace GoF design patterns?

Examples of GoF Design Patterns in Java's core libraries

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