Rosetta Code:Village Pump/Old main talk: Difference between revisions

From Rosetta Code
Content added Content deleted
(Applied Template:vptopic)
 
(110 intermediate revisions by 15 users not shown)
Line 1: Line 1:
{{Vptopic
==Syntax highlighting==
|topic=Old main talk

|summary=Moved content from [[Talk:Main Page]]
This site desperately needs syntax highlighting. I strongly suggest using geshi with the mediawiki extension (it's in the svn extensions dir). See http://bugzilla.wikimedia.org/show_bug.cgi?id=7163 --[[:en:Yurik]] --[[User:67.151.90.174|67.151.90.174]] 12:49, 21 January 2007 (PST)
}}

:With the myriad of languages used, I'm not sure an automatic syntax-highlighting system would be effective. I'll look into it, though. Meanwhile, CSS-based coloring schemes can be done by hand, but that would require a huge amount of work. (It's already difficult enough to keep up with simple styling.) --[[User:Short Circuit|Short Circuit]] 12:42, 23 January 2007 (EST)

::Simple guess out of the blue here, but couldn't we add css syntax highlighting, or mod mediawiki to highlight the code based on the category in which the code is placed ? Plus, a lot of languages have the same basic syntax, PHP/C/C++/JS would look terribly better, and that's only with one syntax highlighter... --[[User:CrashandDie|CrashandDie]] 14:09, 25 January 2007 (EST)
:::I'll look into it. There may be a PHP tool I can set up on a subdomain that will handle manual styling. --[[User:Short Circuit|Short Circuit]] 14:40, 25 January 2007 (EST)

::::I can help with that, most probably, I'd have to look into mediawiki's functionning and stuff, but it shouldn't be too complicated. But then again, depending on my availability and the algorithm needed/used/found this might take a while. Of course, I'd need your permission to start walking that path, as I do not want to waste precious time if it is not to be used. PS: The main page looks better now. --[[User:CrashandDie|CrashandDie]] 17:20, 29 January 2007 (EST)
:::::Go ahead and research it. I'm not looking forward to loads of HTML markup in code examples, but people are genuinely interested in syntax highlighting. If there's a way to do it as a MediaWiki extension, that would be great.

::::::You must realize, that doing something as syntax highlighting on the fly [as in generating each page again and again, on each view] might cause a very serious drain on the server, which your generous webhosting providers might not be rejoiced with. And with such a speech, I feel like Data, or Spock. Watch out Cap'n, at such radiation levels, Scotty might not be able to beam you back up. I'll look into the highlighting. Spock out. --[[User:CrashandDie|CrashandDie]] 18:13, 29 January 2007 (EST)

:::::::Actually, look into writing a MediaWiki bot. That might be a better way to do it. I was looking into it earlier, but it's beyond what I have time to learn how to do right now. --[[User:Short Circuit|Short Circuit]] 18:22, 29 January 2007 (EST)

::::::::Indeed, this might in fact be more appropriate. I have been thinking this over, could it be possible, to modify MediaWiki in a small way, as to update automagically a page in the wiki, that could inform the bot as to which pages need highlighting ? Then, as easy as it might seem, it would be the bot that highlights, and then saves the pages on the wiki... But I do not know if it is possible to add all those colors using the MediaWiki formatting syntax ? Anyhow, my point being, that the users don't need to think about the highlighting, they just add code, as usual, but as they add code using the "one space in front of it" thingy, mediawiki notices there is code, adds it to a given page, so the bot could find the code to highlight. Also, we can't force those creatures to come aboard ship from Rigel IV, you'd be called Kirk the Butcher ! Scotty out. --[[User:CrashandDie|CrashandDie]] 03:33, 30 January 2007 (EST)

:::::::::I'm getting somewhere, at least it seems, not really easy and not really fast, far from fast even, but still, I'm getting somewhere


==Copying from Wikipedia==
==Copying from Wikipedia==


As you may already know, wikipedia supplies samples of code in 'pseudocode'. Would it make sense to copy these across from wiki to here (placed in its own 'pseudocode language section). Maybe then others may use these as a base for translating them into one of the 'usable' codes. There shouldn't be any legal issues in doing this, should there? --[[User:Oatzy|Oatzy]] 18:47, 25 January (GMT)
As you may already know, wikipedia supplies samples of code in 'pseudocode'. Would it make sense to copy these across from wiki to here (placed in its own 'pseudocode language section). Maybe then others may use these as a base for translating them into one of the 'usable' codes. There shouldn't be any legal issues in doing this, should there? --[[User:Oatzy|Oatzy]] 18:47, 25 January (GMT)
:As a blanket rule, if you copy from Wikipedia, include a citation with a link to the specific version of the page copied from. I don't know that the GFDL requires it, but ''I'' will. :-) I'll mention this in the Copyrights page. --[[User:Short Circuit|Short Circuit]] 13:57, 25 January 2007 (EST)
:As a blanket rule, if you copy from Wikipedia, include a citation with a link to the specific version of the page copied from. I don't know that the GFDL requires it, but ''I'' will. :-) I'll mention this in the [[Rosetta Code:Copyrights]] page. --[[User:Short Circuit|Short Circuit]] 13:57, 25 January 2007 (EST)

== Things needed ==

1) A village pump type page (like wikipedia has) where this kind of stuff can be put

2) Better segregation of language types. For instance, is LaTeX really a programming language? As a markup language, it's as much a programming language as HTML is IMO. (Of course, HTML could be added instead), should completely different codes be on their own page?

3) Better guidelines as to what code should be placed. Is something that will run on it's own required, or just enough lines to complete the task (for instance, the part of a C++ program which will print "goodbye world" is: std::cout "goodbye world\n"; but that wouldn't compile on its own. On the other hand a BASIC compiler (or interpreter) will complete the task with: print "goodbye world", but it wouldn't really be a complete program (missing a line number and 'end' or 'system' at the end). So should people place: Only the code that completes the requirements? or; Enough code to get it to compile, dependent on how lax the compiler in question is? or; A program that is completed to specifications and accomplishes the task?

4) A copy of (or a link to) the GFDL1.2 that is easily visible.

[[User:62.252.32.16|62.252.32.16]] 17:57, 22 January 2007 (EST)

:1) Click on Feedback on the left.

:2) Once I get time to work on categorization, that'll happen. I need more people to step up and work on keeping style standards high.

:3) I'll work on clarifying the tasks to that end. Something like [[Control Structures]] clearly doesn't require a full program, while something like [[File I/O]] does.


==Upgrade==
:4) Click on the GNU FDL icon in the bottom-left corner of any page. --[[User:Short Circuit|Short Circuit]] 12:39, 23 January 2007 (EST)


Upgraded MediaWiki from 1.9 to 1.11. Let me know if something's broken that I didn't fix. --[[User:Short Circuit|Short Circuit]] 22:45, 28 October 2007 (MDT)
===ParserFunctions===
: Yeah, the expression templates like #if aren't working. Did you forget to reinstall the '''ParserFunctions''' extension? See [[FizzBuzz]] for example. --[[User:IanOsgood|IanOsgood]] 02:49, 29 October 2007 (MDT)
:: Should be working now. The upgrade process completely borked my settings, so I'd had to recreate at them based on a diff. I missed the extensions lines. --[[User:Short Circuit|Short Circuit]] 08:31, 29 October 2007 (MDT)
:: Ah, crud. While I was asleep, we got a ton of spam. Onward, Bureaucrats! :-) --[[User:Short Circuit|Short Circuit]] 08:32, 29 October 2007 (MDT)


==Kudos==
Can we get [http://meta.wikimedia.org/wiki/ParserFunctions ParserFunctions] installed? It would really help with making more flexible templates. --[[User:Bob9000|Bob9000]] 00:00, 1 February 2007 (EST)
Just wanted to give kudos to [[User:Mwn3d|Mwn3d]] for going through and switching the remainder of the pages to use Template:Header, and to [[User:IanOsgood|IanOsgood]] for going back and cleaning up Mwn3d's and my messes. Take a 100pt patch each. :-) --[[User:Short Circuit|Short Circuit]] 13:07, 13 November 2007 (MST)
:Done. Enjoy. --[[User:Short Circuit|Short Circuit]] 09:47, 1 February 2007 (EST)

Latest revision as of 01:27, 10 November 2010

Old main talk
This is a particular discussion thread among many which consider Rosetta Code.

Summary

Moved content from Talk:Main Page[[Summary::Moved content from Talk:Main Page| ]]

Discussion

Copying from Wikipedia

As you may already know, wikipedia supplies samples of code in 'pseudocode'. Would it make sense to copy these across from wiki to here (placed in its own 'pseudocode language section). Maybe then others may use these as a base for translating them into one of the 'usable' codes. There shouldn't be any legal issues in doing this, should there? --Oatzy 18:47, 25 January (GMT)

As a blanket rule, if you copy from Wikipedia, include a citation with a link to the specific version of the page copied from. I don't know that the GFDL requires it, but I will. :-) I'll mention this in the Rosetta Code:Copyrights page. --Short Circuit 13:57, 25 January 2007 (EST)

Upgrade

Upgraded MediaWiki from 1.9 to 1.11. Let me know if something's broken that I didn't fix. --Short Circuit 22:45, 28 October 2007 (MDT)

Yeah, the expression templates like #if aren't working. Did you forget to reinstall the ParserFunctions extension? See FizzBuzz for example. --IanOsgood 02:49, 29 October 2007 (MDT)
Should be working now. The upgrade process completely borked my settings, so I'd had to recreate at them based on a diff. I missed the extensions lines. --Short Circuit 08:31, 29 October 2007 (MDT)
Ah, crud. While I was asleep, we got a ton of spam. Onward, Bureaucrats! :-) --Short Circuit 08:32, 29 October 2007 (MDT)

Kudos

Just wanted to give kudos to Mwn3d for going through and switching the remainder of the pages to use Template:Header, and to IanOsgood for going back and cleaning up Mwn3d's and my messes. Take a 100pt patch each. :-) --Short Circuit 13:07, 13 November 2007 (MST)