软件分析模式 - 优点和缺点
使用软件分析模式(一般而言)有哪些优点和缺点?
我需要这些信息用于学习目的。这个问题是在软件建模主题的讲座上提出的,因此我认为它可以再次出现。
不管怎样,这个问题引起了我的兴趣,因为我知道使用分析模式的优点是什么(主要是我认为)。但缺点呢?
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这更像是使用
正确的工具来做正确的工作。
因此,优点和缺点取决于您在设计中使用它的程度如何?
这些模式所提供的帮助之一是我们不需要重新发明轮子。有人已经找到了问题的解决方案并将其发布供其他人使用。
因此,优点如下(但不限于):
如果您将其用于
过度工程
,则可以总结缺点。即,当可以避免使用模式或使用 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)
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