是否有在code检测的建筑和设计模式的工具? [英] Are there any tools for detecting architectural and design patterns in code?

查看:117
本文介绍了是否有在code检测的建筑和设计模式的工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的团队正在做几乎不存在的文件一个应用程序反向工程。我们要检测是否有一个使用的建筑或设计模式。您可能会明白,这个应用程序是大,所以手动寻找是没有意义的我们。

Our team is doing reverse-engineering on a application with virtually non-existant documentation. We want to detect if there's a use of architectural or design patterns. You may understand that this application is large, so looking manually is no sense for us.

此应用程序是用Java编写的,我们使用Eclipse IDE的,所以它可能是一个Eclipse插件。

This application is written in Java and we use Eclipse for IDE, so it may be a plugin for Eclipse.

我们已经找到了一些工具,如设计模式检测相似性打分,但它不工作得非常好。

We have found some tools, like "Design Patterns detections Similarity Scoring", but it's not working very well.

所以,这样的工具做的存在?

So, such tools do exists?

推荐答案

如果您有应用程序的源$ C ​​$ C,你是最有可能的重组的它,而不是的逆工程的。 (后者则意味着恢复某种机器从或字节code较高的水平code的)。

If you have the source code of the app, you are most probably reengineering it, rather than reverse engineering. (The latter means recovering some sort of higher level code from machine- or bytecode).

在任何情况下,你要理解应用程序,即在你的心中建立它的心智模式。恐怕自动工具是在这么多的帮助并非如此。这将是什么用,你得到了code假定模式列表?它会帮助你更好地理解的什么的的code实际上做和的为什么的?特别是考虑到模式的高机率被滥用在传统code: - (

At any rate, you want to understand the application, i.e. build a mental model of it in your mind. I am afraid automatic tools aren't of much help in this. What use would it be for you to get a list of supposed patterns in the code? Would it help you understand better what the code actually does and why? Especially taking into account the high chances of patterns being misused in legacy code :-(

在最后,你需要静下心来,反正看完code。但这里是<一个href=\"http://stackoverflow.com/questions/2658133/$c$c-understanding-reverse-engineering-best-concepts-and-tools-java\">another类似的线程希望这有助于接管的遗留应用程序的艰巨任务。

In the end, you need to get down to reading the code anyway. But here is another similar thread which hopefully helps in the daunting task of taking over a legacy app.

这篇关于是否有在code检测的建筑和设计模式的工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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