Rosetta Code:Village Pump/Example ordering: Difference between revisions

no edit summary
(New page.)
 
No edit summary
Line 2:
 
The other issue is the ordering of C++, C, C# C@ C... or whatever. I think it is too much to ask anyone to remember the ASCII ordering of other than alphanumerics and would ask that we ignore any mis-orderings if the ordering between language names depends on non-alphanumerics. How say you all? --[[User:Paddy3118|Paddy3118]] 10:44, 11 September 2010 (UTC)
:Case-insensitive ordering is good. I know C comes first in that list since it's shortest. By that logic C++ would come last. I'm not sure about the others. For our existing languages it would go "C, C#, C++" but rules should be made. With the advent of SMW this might be moot. I'm pretty sure using SMW we could put examples on their own pages (probably in the old Example namespace) with a tag for which task they satisfy. Then each task page could transclude those example pages. Basically a task page would look like this:
<pre><nowiki>{{task|Category}}Description
 
More Description
 
Tests
{{task example list}}</nowiki></pre>
:Then the task page would only have to be edited when the description needs to change. Maybe there could be an "Add example" button. In any case, at that point SMW would sort for us, and it would be uniform across the whole site. Until then think we can sort languages that start with the same letters by length and that should handle most of the sorting problems. If any more arise we can fix them manually and then record a rule somewhere. --[[User:Mwn3d|Mwn3d]] 18:19, 11 September 2010 (UTC)
Anonymous user