代码复用工具

发布于 2024-08-20 10:37:36 字数 190 浏览 3 评论 0原文

我通常维护可以在 Wikidpad 个人 wiki 中重复使用的代码片段,并带有一个小索引页面,可以将我带到我想要的任何代码。

我想与我的团队分享这些片段,并正在寻找简单的方法来做到这一点。

有没有任何工具可以帮助我设置这样的存储库?或者我应该简单地安装一个 wiki 并将我的个人 wiki 移植到那里?

谢谢 哈里

I usually maintain code snippets that I can resuse in a Wikidpad personal wiki with a small index page that can take me to any code that I want.

I want to share these snippets with my team and am looking for easy ways to do it.

Are there any tools that would help me setup such a repository? Or should I simply install a wiki and port my personal wiki there?

Thanks
Hari

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

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

发布评论

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

评论(4

淡紫姑娘! 2024-08-27 10:37:36

也许是谷歌文档?搜索能力是关键。没有人有时间交叉索引、关键字内容并将“片段”组织成复杂的本体。

另外,请记住,当有人重用代码时,他们也会重用您可能在后续修订中解决的错误、限制和性能问题。重用代码的最佳方法不是复制它,而是记录它并使其可直接重用。

Google Docs, perhaps? Search-ability is the key. No one has time to cross-index, keyword-stuff, and organize "snippets" into complex ontologies.

Also, remember that when someone reuses code, they also reuse the bugs, limitations, and performance issues you may have worked out in subsequent revisions. The best way to reuse code is not to copy it, but to document it and make it accessible for direct reuse.

没︽人懂的悲伤 2024-08-27 10:37:36

一些 IDE 内置了代码片段实用程序。例如,Visual Studio 有代码片段管理器。
或者也许是像 Resharper 这样的插件。我的观点是找到与您的团队使用的 IDE 完美集成的东西。

Some IDEs have a code-snippet utility built into them. e.g. Visual Studio has Code Snippet Manager.
Or perhaps an addin like Resharper. My point being find something that integrates nicely with the IDE that your team uses.

婴鹅 2024-08-27 10:37:36

为什么不使用代码 snipplr

Why not use code snipplr

守望孤独 2024-08-27 10:37:36

一个简单且可重用的解决方案:具有 Web 界面(如 Subversion)的存储库。 Github 也是一个不错的选择,因为你不需要安装

An easy and reusable solution: a repository with web interface like subversion. Also Github can be a good option since you don't need installation

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