Understanding the code process of Ccleaner [closed]

吃可爱长大的小学妹 提交于 2019-12-13 03:55:13

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/23740436/understanding-the-code-process-of-ccleaner

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!