WikiCode
From Meta
The idea of WikiCode is to enable programmers to share code with each other, such that documentation and even the code itself can be continually improved, on an instantaneous basis like a wiki article, dispensing with restrictive (but secure and orderly) check-in/out and edit-authorization procedures of repositories like SourceforgeOther goals are: independence of any particular programming language; and ideally, independence of any particular human language (native language of programmer). For example, a hosted routine in FORTRAN code in the English section could be quickly converted into Ada in Spanish, BASIC in Portuguese, C++ in French, and other such combinations, simply by changing the language selectors. The code itself (or at least its function) would remain the same across the different transformations. The projects and proposals below represent steps toward these still-lofty goals.
Contents |
[edit] Current similar projects
- Literate Programs - "every article is simultaneously a document and a piece of code that you can view, download, compile, and run..." -- available in multiple programming-languages.
- Rosetta Code - a repository of site-requested code examples, all made by visitors in the programming language they chose.
- coDEVwiki - open-source projects open and free collaboration environment
- Code Wikia serves as a digital reference guide for both new and experienced programmers - focus is on simple code comparison.
- Code Codex - shared online sourcecode repository using MediaWiki
[edit] Wiki code-module repository proposals (OLD)
- Computer-language independent: same module, different programming languages
- Human-language independent: same module, different human languages
[edit] Computer-language independent
- 30 December 2006 - User:Ryan524 - Discussion
WikiCode Proposal: http://lists.wikimedia.org/pipermail/foundation-l/2006-December/026425.html ==Proposal== The idea for WikiCode is to have a repository of programming source code in different programming languages. An example might be this:
Title: Show A Message Box
Programming Language: Visual Basic .NET
Purpose: To display a message box to the user.
CODE:
MsgBox("This is a Message box!")
Isn't it more sensible to think about augmenting [1] perhaps? In particular to have a wiki for all the documentation and code of all GPL projects?
[edit] Human-language independent
- 27 March 2005 - User:Mauricio Rodriguez Alcala - Discussion
Wikicode is a proposal for a new Wikimedia project. It will be a place for programmers to share their source code with other programmers. What is so great about this proposal is that a programming language is the same if you speak English or Portuguese or any other language. A piece of code on the English section can be quickly translated to Spanish, Portuguese, French and other languagues simply by changing the title of the code and the description! The code itself remains the same across the different languague pages! (Except for some programs that contain extensive text, those might have to be translated. This is still much easier than translating lets say a Wikipedia article from English to Russian.) There are plenty of free source code resources on the net but don't you get frustrated when you find an error in the code and can't fix it? This is where a wiki would help. The articles in this project will contain source code, a meaningful title and a description of the program and possibly compilation. The articles will be organized by programming language first and then by program type (i.e. operating systems, games, graphic engines.)
As I see it their are two ways to run a wiki like this, the first way is like literate programs where its code snipplets, the secon would replicate yet another existing wiki, coDEVwiki. So requrdless of how it would be ran t wold replicate an already existing project.--168.156.174.71 19:44, 14 February 2007 (UTC)
I'm not a big fan of this, particularly because this isn't very info-centric. Aren't Wikimedia projects supposed to be providing about information, and not be a helpdesk? Besides, Sourceforge already exists. Messedrocker 22:40, 19 May 2005 (UTC)
If I got it right, it's a "wikisnippets of code" project. There are some troubles with that:
- Source code is not truly language-independent: comments and variable names would have to be translated, and this can lead to errors in code. But yeah, it's easier to translate. Maybe Mediawiki could be adapted to work with "interlinguistic templates": templates which take a different value if the reader has set a different language in his browser or wiki preferences. It would be useful for common variable names (foo, bar, name, address...).
- License: GFDL may be too restrictive for this kind of resource.
- Compilation: I think this could be too risky. Vandals could hide viruses and other kinds of malware in them.
- Coding style (braces, hungarian notation...)
--Comae 09:02, 2 Jun 2005 (UTC)
Looks like someone has already started this project. Check out http://wikicode.frihost.net --4.189.119.131 00:18, 1 Jul 2005 (UTC)
What's the difference with Wikisource? --Patio 11:39, 5 Jul 2005 (UTC)
- Wikisource is a collection of freely available texts (say, writings of Plato) for use as source material, not a collection of source code.
I actually googled for "wikicode" in hope of finding something. I support the idea of wikicode, people might find a fast source of algorithms and the alikes helpful. It's easier to go on to "wikicode" and search for "B+tree algorithm" than going to sourceforge, search for "B+tree", find nothing because no project includes it in their description, download a random project, search in the source code, cant find, go back to sourceforge... etc. And comparing to code search engines like koders.com, it's just got an index of very much source code, but you can't search for "B+tree" there and find a whole page dedicated to B+tree algorithms.217.211.57.252 03:49, 16 March 2007 (UTC)
I'm not sure if anyone still cares, but a project similar to this has been started at http://coding.cwhnetworks.com/ . Take a look, and see what you think :D --60.240.116.127 12:51, 22 January 2006 (UTC)
- My browser protested about too many redirects. rursus 12:48, 31 December 2007 (UTC)

