Talk:Population count: Difference between revisions

From Rosetta Code
Content added Content deleted
(→‎task requirements change: random carping about "proper labeling")
(→‎task requirements change: added comments concerning the matching of the order of output(s) to the order of the requirements.)
Line 6: Line 6:


:To my mind, it is not really necessary that things be labeled when they are unambiguously identified by position. Otherwise we should all be using named parameters rather than positional parameters. In this case you asked for three things in order, and three separate lines of output seems quite unambiguous already. I can count to three. Or are newlines some kind of second-class citizen when it comes to whitespace? Do we label the rows in our matrices? Where do we draw the line on labeling everything? What makes a label "proper"? Do we feel compelled to put a comment on every line of code? It's easy for propriety to start looking like an obsession. Specifying exact output formats for tasks where it doesn't much matter is also a form of improper, to my mind. Not saying never, but you obviously make the tradeoff at a different knob setting than I would. Sorry I'm a grouch this morning. Sorry I can't seem to talk in longer sentences this morning. <tt>:)</tt> --[[User:TimToady|TimToady]] ([[User talk:TimToady|talk]]) 16:34, 18 March 2014 (UTC)
:To my mind, it is not really necessary that things be labeled when they are unambiguously identified by position. Otherwise we should all be using named parameters rather than positional parameters. In this case you asked for three things in order, and three separate lines of output seems quite unambiguous already. I can count to three. Or are newlines some kind of second-class citizen when it comes to whitespace? Do we label the rows in our matrices? Where do we draw the line on labeling everything? What makes a label "proper"? Do we feel compelled to put a comment on every line of code? It's easy for propriety to start looking like an obsession. Specifying exact output formats for tasks where it doesn't much matter is also a form of improper, to my mind. Not saying never, but you obviously make the tradeoff at a different knob setting than I would. Sorry I'm a grouch this morning. Sorry I can't seem to talk in longer sentences this morning. <tt>:)</tt> --[[User:TimToady|TimToady]] ([[User talk:TimToady|talk]]) 16:34, 18 March 2014 (UTC)

:: Not all programming examples shown the sequences in order of them being listed in the requirements. &nbsp; I thought the displaying of the output would be in order of the requirements and this being universally understood, but no. &nbsp; The only way to tell what's what would be to examine the program and make the connection. &nbsp; It would be almost arbitrary to flag an example's output as incorrect if there were three (correct) lines of output (but in the "wrong" order, and that is subjective), so I added the requirement so that other people could tell which output was for what sequence. &nbsp; At least one entry didn't display the numbers in order of the requests, and I could see their point, the order wasn't explicitly requested, just implied, something not worth flagging as ''incorrect'', in my opinion. &nbsp; ''Proper labeling'' is very simple to me: if it identifies what the output is, that's good enough (which is much better than no label). &nbsp; I didn't want to cause a ruckus and extract ire out of anyone over such a minor request. &nbsp; It isn't the format that is in question, but ''which'' output belongs to what sequence. &nbsp; Labeling the outputs isn't unreasonable, especially in this case where each of the three distinct (popCount, evil, and odious) sequences is very similar looking. &nbsp; I had misgivings of creating a Rosetta Code task that asked for three different sequences, but all three were similar enough to include into one task. &nbsp; Knowing that the three outputs could easily be confused, I had assumed that people would label their output; &nbsp; I was mistaken, so the identification requirement was added. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 17:18, 18 March 2014 (UTC)


I thought I'd seen a way of highlighting a draft task (the ''requirements'' in this case) in some manner. &nbsp; If somebody could inform me how to do that (or change it directly), I would be obliged. &nbsp; As this is a draft task, my attempt should suffice in the interim. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 14:16, 18 March 2014 (UTC)
I thought I'd seen a way of highlighting a draft task (the ''requirements'' in this case) in some manner. &nbsp; If somebody could inform me how to do that (or change it directly), I would be obliged. &nbsp; As this is a draft task, my attempt should suffice in the interim. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 14:16, 18 March 2014 (UTC)

Revision as of 17:18, 18 March 2014

task requirements change

When I entered this Rosetta Code task (for three different types of integer sequences), it never even occurred to me that the output wouldn't be labeled or titled.

So, I changed the task's requirements to included proper labeling so as to identify which numbers are being shown. -- Gerard Schildberger (talk)

To my mind, it is not really necessary that things be labeled when they are unambiguously identified by position. Otherwise we should all be using named parameters rather than positional parameters. In this case you asked for three things in order, and three separate lines of output seems quite unambiguous already. I can count to three. Or are newlines some kind of second-class citizen when it comes to whitespace? Do we label the rows in our matrices? Where do we draw the line on labeling everything? What makes a label "proper"? Do we feel compelled to put a comment on every line of code? It's easy for propriety to start looking like an obsession. Specifying exact output formats for tasks where it doesn't much matter is also a form of improper, to my mind. Not saying never, but you obviously make the tradeoff at a different knob setting than I would. Sorry I'm a grouch this morning. Sorry I can't seem to talk in longer sentences this morning. :) --TimToady (talk) 16:34, 18 March 2014 (UTC)
Not all programming examples shown the sequences in order of them being listed in the requirements.   I thought the displaying of the output would be in order of the requirements and this being universally understood, but no.   The only way to tell what's what would be to examine the program and make the connection.   It would be almost arbitrary to flag an example's output as incorrect if there were three (correct) lines of output (but in the "wrong" order, and that is subjective), so I added the requirement so that other people could tell which output was for what sequence.   At least one entry didn't display the numbers in order of the requests, and I could see their point, the order wasn't explicitly requested, just implied, something not worth flagging as incorrect, in my opinion.   Proper labeling is very simple to me: if it identifies what the output is, that's good enough (which is much better than no label).   I didn't want to cause a ruckus and extract ire out of anyone over such a minor request.   It isn't the format that is in question, but which output belongs to what sequence.   Labeling the outputs isn't unreasonable, especially in this case where each of the three distinct (popCount, evil, and odious) sequences is very similar looking.   I had misgivings of creating a Rosetta Code task that asked for three different sequences, but all three were similar enough to include into one task.   Knowing that the three outputs could easily be confused, I had assumed that people would label their output;   I was mistaken, so the identification requirement was added. -- Gerard Schildberger (talk) 17:18, 18 March 2014 (UTC)

I thought I'd seen a way of highlighting a draft task (the requirements in this case) in some manner.   If somebody could inform me how to do that (or change it directly), I would be obliged.   As this is a draft task, my attempt should suffice in the interim. -- Gerard Schildberger (talk) 14:16, 18 March 2014 (UTC)