Talk:Rosetta Code/Count examples: Difference between revisions

(Explanation of the choice of counting header uses)
 
(→‎Count ===(.*)===: new section)
Line 1:
The method of counting header template uses may still give an incorrect count of programming examples, but I think it's as close as we can get without getting unreasonably complex. For instance, we could count the number of start lang tags, but some examples use pre and some more still have one example split into sections with explanations. The method used for this task does not account for iterative and recursive solutions for one task, or splits like on the [[String Length]] page. What we end up with for the total across all tasks is the same as counting the members in each language category and subtracting the language implementations (which seems more complicated). --[[User:Mwn3d|Mwn3d]] 19:30, 9 February 2009 (UTC)
 
== Count ===(.*)=== ==
 
We can count anything under "triple equals" but it will duplicate results. Like:
 
<pre>
1. Python
1.1. A
1.2. B
</pre>
 
Will count 3, not 2.
 
Other solution is count only "triple equals" in articles with them. But some tasks like [[HTTP Request]] have only one multiple solution tasks, That will count only [[Erlang]].
 
A complex solution, will be read all sections, but will take a long time, and will be buggy.
Anonymous user