Talk:Rosetta Code/Count examples: Difference between revisions

m
 
(9 intermediate revisions by 5 users not shown)
Line 1:
== method of counting header template use may be incorrect ==
 
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)
 
Line 62 ⟶ 64:
 
::Agreed. I think it would be useful to link to these from the front page [[User:Garbanzo|Garbanzo]] ([[User talk:Garbanzo|talk]]) 08:10, 3 January 2021 (UTC)
 
::Again, this output is very useful and would be nice if it was visible from the front page. One thing it is missing is joint entries. Several tasks have common C/C++ entries (e.g [[Include_a_file#C_.2F_C.2B.2B]]) but the entry is only counted for C. Those entries are counted from the C++ Catagory page. Most tasks should (and do) have separate entries but a few of the simple ones would have identical entries. [[User:Garbanzo|Garbanzo]] ([[User talk:Garbanzo|talk]]) 01:09, 12 July 2021 (UTC)
::One more thing that would nice (but maybe a lot of work) would be to distinguish between unimplemented tasks and tasks that have been omitted [[User:Garbanzo|Garbanzo]] ([[User talk:Garbanzo|talk]]) 01:12, 12 July 2021 (UTC)
 
::: Sounds good. May be interesting / challenging to get that right. Knock yourself out. Let us know how your work progresses. --[[User:Thundergnat|Thundergnat]] ([[User talk:Thundergnat|talk]]) 10:17, 13 July 2021 (UTC)
:::: I think I got it working and it was interesting. It turned out figuring out omitted was easier that splitting C/C++ which was opposite of what I was expecting. There is a test run here [[User:Garbanzo/TaskCountOutput]]. I used ASCII 'O' to mark the omitted tasks, but may another symbol would look better? This is my first dive into Raku so it may not be the best idomatic way. It's a fun language. [[User:Garbanzo|Garbanzo]] ([[User talk:Garbanzo|talk]]) 17:05, 17 July 2021 (UTC)
 
::::: Ha! Kudos! I was only semi serious when I suggested you implement it. I've got a bunch of RL stuff going on right now that is severely limiting my Rosettacode time. Awesome that you stepped up and did it. (And I got you to mess around with Raku too. Mwaa ha ha ha. My evil plan comes together. 😈) O is probably as good an indicator as anything else. I'll try running my weekly reports with the update. --[[User:Thundergnat|Thundergnat]] ([[User talk:Thundergnat|talk]]) 19:35, 18 July 2021 (UTC)
 
==Problem running the C# entry==
I tried running the C# entry under .NET Framework 4.8.1 and Windows 10 and got the error message:
<code>Unhandled Exception: System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.</code>
<br>Posts on Stackoverflow suggested adding <code>ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;</code> as the first thing in the Main method, which fixed the problem, however I haven't put this in the actual source as I'm not sure it is the "proper" solution. --[[User:Tigerofdarkness|Tigerofdarkness]] ([[User talk:Tigerofdarkness|talk]]) 11:17, 11 September 2022 (UTC)
 
== Encoding of '+' in task names such as 'A+B' ==
 
I noticed today whilst engaged in the tedious business of updating all Wren solutions to use Wren syntax highlighting that encoding the '+' sign to %2B in a task name such as 'A+B' no longer works - at least in Firefox and Chrome. It encodes it as 'A_B' instead. The only way I could get it to work was to use the double encoding %252B. Most other solutions are probably using a built-in method for this but may be worth checking that they still work. [[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 11:40, 3 February 2024 (UTC)
9,476

edits