代码复用工具
我通常维护可以在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
也许是谷歌文档?搜索能力是关键。没有人有时间交叉索引、关键字内容并将“片段”组织成复杂的本体。
另外,请记住,当有人重用代码时,他们也会重用您可能在后续修订中解决的错误、限制和性能问题。重用代码的最佳方法不是复制它,而是记录它并使其可直接重用。
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.
一些 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.
为什么不使用代码 snipplr
Why not use code snipplr
一个简单且可重用的解决方案:具有 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