哪篇文章讨论了“从 10000 英尺处查看代码”?

发布于 2024-09-13 09:53:45 字数 187 浏览 4 评论 0原文

几年前,我读过一篇关于分析大型代码库的巧妙方法的文章。

这个想法是缩小到缩进模式和块长度都是真正可见的。

作者写了关于用非常小的字体打印代码并从 10 英尺后查看结果的文章。我相信作者还拥有一些工具来重新格式化代码并为该技术生成图像,这样就可以避免论文。

我找不到正确的搜索查询来提出这个问题。有人有什么想法吗?

A few years ago I read an article about a neat way to analyze a large code-base.

The idea was to zoom out so far that patterns of indentation and block length are all that is really visible.

The author wrote about printing out code with very small fonts and looking at the results from 10 feet back. I believe the author also had some tools for reformatting code and producing images for this technique, in such a way that paper could be avoided.

I can't find the right search query to bring this up. Anyone have any ideas?

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

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

发布评论

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

评论(4

浅唱々樱花落 2024-09-20 09:53:45

文本编辑器 Sublime Text 在窗口左侧有一个缩小的代码概览,并且可以用于滚动。

The text editor Sublime Text has a zoomed-out overview of your code on the left of the window, and can be used to scroll.

寄人书 2024-09-20 09:53:45

我自己就这样做了,那就是用非常小的字体打印到纸上,然后退一步。如果您想避免走纸路线,那么也许您可以打印为 PDF?

或者使用可以通过更改字体大小来放大和缩小的编辑器。我使用 SciTEKomodo Edit,两者都基于 Scintilla 代码编辑引擎,都允许我按住 ctrl 键并使用鼠标滚轮更改字体大小(就像网络浏览器一样)。


通过一些 Google-fu,我发现参考资料表明这个(ctrl+鼠标滚轮)也可以在 Visual Studio 和 XCode 中实现。有人能证实吗?

I've done this myself, that is print to paper with very small fonts and step back. If you want to avoid the paper route then perhaps you can print to PDF?

Or use and editor that can zoom in and out by changing font size. I use SciTE and Komodo Edit, both based on the Scintilla code editing engine and both allow me to hold down the ctrl key and use the mousewheel to change font size (just like web browsers).


With a bit of Google-fu I found references that this (ctrl+mousewheel) may also be implemented in Visual Studio and XCode. Can anyone confirm?

无敌元气妹 2024-09-20 09:53:45

我认为您指的是软件可视化?如果您搜索代码可视化工具,您也许可以找到一些可以做到这一点的产品,但更多的是专注于将测量信息/指标聚合在一起以供软件理解,而不是仅作为查看或导航到代码的方式。

一些工具包括 Code city、代码爬虫或代码可视化工具。近年来,Michele Lanza 和他的团队在这一领域做了一些出色的工作,但是有些只支持某些语言/平台,因此请注意它们是否对您有用。

http://www.inf.usi.ch/faculty/lanza/

< a href="http://www.inf.usi.ch/phd/wettel/codecity.html" rel="nofollow noreferrer">http://www.inf.usi.ch/phd/wettel/codecity.html

I think you are referring to Software Visualization? If you search for Code Visualizer, you maybe able to find a few products out there that does it but there are more focusing on aggregating the measurements information/metrics together for software comprehension and not necessary as a way to view or navigating to code only.

Some of the tools include Code city, code crawler or code visualizer. Michele Lanza and his team did some great work in this area in the recent years, however some only has support for certain language/platform so be mindful if they are going to be useful for you.

http://www.inf.usi.ch/faculty/lanza/

http://www.inf.usi.ch/phd/wettel/codecity.html

游魂 2024-09-20 09:53:45

可以提取所有类型、类等,并将它们放入 graphviz 等工具中并生成图表。

Could extract all the types, classes, etcetera, and put them into a tool such as graphviz and generate a graph.

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