A wiki is definitely the way to go but why stop there? Why not go with an issue tracking system that adds wiki functionality?
I have first hand experience with Trac and Redmine and openly recommend both of them. We've recently switched from Trac to Redmine where I work and I think I like it a little more than Trac, and use the wiki functionality almost everyday.
Update:
If you are looking for something smaller scale, there was a previous discussion here on SO that looks like it has some interesting links.
They do exactly what you are talking about... searching, collecting and sharing snippets of any language. It solves the problems I had for similar issue.
Code Warehouse is the most extensive source code snippets manager. Code Warehouse is multi-user ready, which means that an organization’s entire development team can share a central code library and benefit from code that is already written and tested.
请查看 gist.github.com。 这绝对比 wiki 共享点好得多。
另外,您可以重复使用其他用户的片段。
Wiki 旨在共享任何类型的内容。 有些工具是专门为共享代码片段而设计的。 一些 IDE 还具有代码片段功能。
wiki 绝对不是最佳匹配,因为它不会与您的 IDE 集成,需要您打开单独的工具。
Please have a look at gist.github.com. This is definitely much better than a wiki sharepoint.
Plus you can reuse snippets from other user.
Wiki were designed to share any type of content. Some tools have been specifically designed to share code snippets. Some IDEs also have snippet features.
A wiki is definitely not the best match because it will not integrate with your IDE requiring you to have a separate tool open.
I'm going back and forth between a few Mac applications (haven't decided on one yet but I have tried quite a few). Most of these options allow you to host your snippet library on Dropbox or another network storage location so you can share your library with others. I don't know of any that provide any sort of live changes monitoring though.
Though not designed as an actual code snippet application, I used this for that purpose for a while and was quite content with it. You can share your library with others whether they're on Mac or Windows because there is a compatible alternative for Windows (i forget the name of the Windows alternative but it's easily found on Google I'm sure)
Finally decided to move on because I just wanted something a bit more robust. But may be an option to consider for some.
I just learned about this one and actually only just started trying it. So far it's pretty good and I haven't decided whether or not I'll stick to this or go back to Codebox. I really like the documentation library functionality it has but as far as storing snippets, with my limited experience thus far, all I can say, is I'm rather disappointed in the codehighlighting. It also doesn't have additional fields to write comments like some of the other applications do so your comments have to actually be written with the code. I can't say that bothers me though, it's actually a good thing.
I was using this one for a while and liked it quite a lot but wanted something that I could not only store small snippets in but also full source files like a few self contained javascript libraries. I attempted to store a large javascript file and the program not only couldn't handle it, but it actually corrupted my entire snippet library which I was hosting on Dropbox. Not sure if it was a self contained problem because I immediately uninstalled the app after that. But overlooking that i
A few others I may try but have no opinion about thus far
Last but not least.. I've actually just been using Gist more and more lately. I'm not aware of any desktop application for Gist (there's a browser app for Chrome I think and a couple of third party applications on the AppStore but I haven't tried them)
发布评论
评论(6)
这就是所谓的“维基”。
我们使用 Sharepoint Wiki 页面正是为了这个目的……这样代码说明和示例可以包含在同一位置。
That's called "a wiki".
We use a Sharepoint Wiki page for exactly this purpose ... that way code instructions and examples can be included in the same place.
维基百科绝对是一条出路,但为什么要止步于此呢? 为什么不使用添加 wiki 功能的问题跟踪系统呢?
我有 Trac 和 Redmine 并公开推荐它们。 我们最近从 Trac 切换到我工作的 Redmine,我想我比 Trac 更喜欢它,并且几乎每天都使用 wiki 功能。
更新:
如果您正在寻找较小规模的东西,可以查看之前的讨论< /a> 这里看起来有一些有趣的链接。
A wiki is definitely the way to go but why stop there? Why not go with an issue tracking system that adds wiki functionality?
I have first hand experience with Trac and Redmine and openly recommend both of them. We've recently switched from Trac to Redmine where I work and I think I like it a little more than Trac, and use the wiki functionality almost everyday.
Update:
If you are looking for something smaller scale, there was a previous discussion here on SO that looks like it has some interesting links.
您可能对 snip2code 感兴趣。
它们的作用正是您所说的...搜索、收集和共享任何语言的片段。 它解决了我遇到的类似问题。
希望它可以帮助
You might be interested in snip2code.
They do exactly what you are talking about... searching, collecting and sharing snippets of any language. It solves the problems I had for similar issue.
Hope it may help
Code Warehouse 是最广泛的源代码片段管理器。 Code Warehouse 是多用户就绪的,这意味着组织的整个开发团队可以共享中央代码库并从已编写和测试的代码中受益。
替代文本 http://www.xcca.com/cwbig.png
Code Warehouse is the most extensive source code snippets manager. Code Warehouse is multi-user ready, which means that an organization’s entire development team can share a central code library and benefit from code that is already written and tested.
alt text http://www.xcca.com/cwbig.png
请查看 gist.github.com。 这绝对比 wiki 共享点好得多。
另外,您可以重复使用其他用户的片段。
Wiki 旨在共享任何类型的内容。 有些工具是专门为共享代码片段而设计的。 一些 IDE 还具有代码片段功能。
wiki 绝对不是最佳匹配,因为它不会与您的 IDE 集成,需要您打开单独的工具。
Please have a look at gist.github.com. This is definitely much better than a wiki sharepoint.
Plus you can reuse snippets from other user.
Wiki were designed to share any type of content. Some tools have been specifically designed to share code snippets. Some IDEs also have snippet features.
A wiki is definitely not the best match because it will not integrate with your IDE requiring you to have a separate tool open.
我在几个 Mac 应用程序之间来回切换(尚未决定使用哪一个,但我已经尝试过不少)。 大多数选项都允许您将代码片段库托管在 Dropbox 或其他网络存储位置,以便您可以与其他人共享您的库。 但我不知道有任何提供任何类型的实时变化监控。
文本扩展器
虽然没有设计为实际的代码片段应用程序,但我将其用于此目的并对此感到非常满意。 您可以与其他人共享您的库,无论他们是在 Mac 还是 Windows 上,因为有 Windows 的兼容替代方案(我忘记了 Windows 替代方案的名称,但我确信它很容易在 Google 上找到)
最终决定继续前进,因为我只是想要更强大一点的东西。 但对于某些人来说可能是一个值得考虑的选择。
Codebox
Dash
我刚刚了解到这个,实际上才刚刚开始尝试。 到目前为止,它还不错,我还没有决定是坚持这个还是回到 Codebox。 我真的很喜欢它的文档库功能,但就存储片段而言,以我迄今为止有限的经验,我只能说,我对代码突出显示感到相当失望。 它也没有像其他一些应用程序那样具有额外的字段来编写注释,因此您的注释实际上必须用代码编写。 我不能说这让我烦恼,这实际上是一件好事。
片段
我使用这个已经有一段时间了,非常喜欢它,但我想要一些东西,我不仅可以存储小片段,还可以存储完整的源文件,例如一些自包含的 javascript 库。 我尝试存储一个大的 javascript 文件,但该程序不仅无法处理它,而且实际上损坏了我在 Dropbox 上托管的整个代码片段库。 不确定这是否是一个独立的问题,因为我在那之后立即卸载了该应用程序。 但忽略了我
我可能会尝试其他一些,但到目前为止没有任何意见
代码库(开源)
Code Collector Pro
最后但并非最不重要的..我实际上刚刚使用 Gist 最近越来越多了。 我不知道有任何 Gist 桌面应用程序(我认为有一个 Chrome 浏览器应用程序,AppStore 上有几个第三方应用程序,但我还没有尝试过)
I'm going back and forth between a few Mac applications (haven't decided on one yet but I have tried quite a few). Most of these options allow you to host your snippet library on Dropbox or another network storage location so you can share your library with others. I don't know of any that provide any sort of live changes monitoring though.
Text Expander
Though not designed as an actual code snippet application, I used this for that purpose for a while and was quite content with it. You can share your library with others whether they're on Mac or Windows because there is a compatible alternative for Windows (i forget the name of the Windows alternative but it's easily found on Google I'm sure)
Finally decided to move on because I just wanted something a bit more robust. But may be an option to consider for some.
Codebox
Dash
I just learned about this one and actually only just started trying it. So far it's pretty good and I haven't decided whether or not I'll stick to this or go back to Codebox. I really like the documentation library functionality it has but as far as storing snippets, with my limited experience thus far, all I can say, is I'm rather disappointed in the codehighlighting. It also doesn't have additional fields to write comments like some of the other applications do so your comments have to actually be written with the code. I can't say that bothers me though, it's actually a good thing.
Snippets
I was using this one for a while and liked it quite a lot but wanted something that I could not only store small snippets in but also full source files like a few self contained javascript libraries. I attempted to store a large javascript file and the program not only couldn't handle it, but it actually corrupted my entire snippet library which I was hosting on Dropbox. Not sure if it was a self contained problem because I immediately uninstalled the app after that. But overlooking that i
A few others I may try but have no opinion about thus far
Code Bank (open-source)
Code Collector Pro
Last but not least.. I've actually just been using Gist more and more lately. I'm not aware of any desktop application for Gist (there's a browser app for Chrome I think and a couple of third party applications on the AppStore but I haven't tried them)