了解Ccleaner的代码过程 [英] Understanding the code process of Ccleaner

查看:74
本文介绍了了解Ccleaner的代码过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您要分析代码,套准清理器工具将如何工作?



我不是在这里询问特定的代码...我只是想知道粗略地解释了例如Ccleaner之类的工具的代码正在工作。



之所以这样问,是因为我想创建有关Ccleaner工具的类图。 / p>

但是,当然对于Ccleaner来说,您将需要源代码..我们都知道ccleaner的源代码没有正常权限



但是,如果有人知道有任何注册表和PC清洁器工具可以用来清理计算机上的混乱情况以及如何清理注册表...这将帮助我大量的时间来创建类图。



感谢

解决方案

这在很大程度上取决于您设计应用程序的方式(因为这看起来像是设计练习,而不是其他任何东西。)



首先,我建议您列出您的要求。说像ccleaner太宽泛了。只需列出您系统需要实现的功能列表,然后尝试将这些列表分解为较小的职责即可。还提供了候选对象列表,并尝试在这些对象之间分配职责,之后您可以开始思考自己的结构以及如何组织它们(组成,关联,继承关系)。好的物品既不是贫乏的(负责任的0)也不是敬虔的(要做的事情很多)



这大概是做到这一点的一种方法。没有完美的设计,也没有单个类图可以回答这个问题。


How does a Register cleaner tool works if you would analyze the code ?

I'm not asking for specific code here...I'm just wondering the code for a tool like Ccleaner for instance is working, roughly explained.

The reason why I ask this is because I want to create an class diagram about the Ccleaner tool.

But ofcourse for Ccleaner specificly you would need the source code..and we all know no normal has acces to the source code of ccleaner

But if anyone know's any registery and pc cleaner tool is getting to it to clean up the mess on your computer and how it's cleaning up your registery...it would help me big time to create an class diagram.

Thanx

解决方案

It depends much on how you design your application (because this looks like a design exercise more than anything).

First I would recommend you to list down your requirements. Saying "like ccleaner" is just way too broad. Just come up with a list of functionality you need your system to achieve and try to break down such list into smaller responsibilities. Also come up with a list of candidate objects and try to distribute your responsibilities in between those objects, after that you can start thinking in your structure and how to organize them (composition, association, inheritance relationships). Good objects are not anemic (0 responsibily) nor godly (a tons of stuff to do)

That roughly is a way to do it. There is no perfect design nor "a single class diagram" that might answer this question.

这篇关于了解Ccleaner的代码过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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