-
-
Notifications
You must be signed in to change notification settings - Fork 551
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
beer-song: Restore original property name #694
Conversation
So how do we determine what "property" is supposed to hold. In some cases I see "integer" which could lean toward a technical thing in programming. In this case, property is "lyrics" which is definitely coined for the problem being solved. I agree with this change, but there must be some way to document so that it is clear what that means, other than what is in the schema currently describing its character types. |
To communicate a little bit further on why my choice of "verse" and "verses" I was describing the "property" based on what I was thinking at the time about "I expect to get a single verse, whatever that means as compared to down there, where I expect to get verses..." as an idea, but lyrics describes both forms of this, more generally. |
The safe choice for Some tests may not fit in this situation, then it needs to be decide for each case. Edit: Most of the time I just take the name of the surrounding key. |
So in this case, verse and verses? |
I agree that this doesn't really need to be changed, @kotp, but:
So I opened this PR, but I really don't care about which one is the final name: |
So it really could have gone either way? I think. I think the thing then that should be changed is the description then rather than the property? |
Right, hehe, your response while I was expanding is exactly what I am gathering from this. What do you think @kytrinyx ? |
I will mention that the influence here is the example solution, it uses verses, driven from the test. So it is bottom up driven, rather than top down driven, in this case. |
Would you explain for me...
Why is it made impossible? What will happen if I try? What makes I don't understand the answer to either question from looking at either canonical-data.json or the commit message, so maybe it will help people like me if the explanation of why Edit: Oh, is it because All I see from #661 (comment) is that the description says I understand the desire for greater consistency, but it doesn't explain to me why test generation is impossible. |
At first I imagined that everything was I completely forgot about the comments, @kotp. Sorry for that! I'll rewrite or kill this PR. What do you prefer? |
Sorry for all the confusion. I really didn't see it was Edit: I need to stop writing PRs before having coffee in the morning. 😄 |
It is good this came up, I think... since it brings more attention to the need to explain the schema in a better way. Especially, "property" lately has been getting a lot of attention. |
This seems a good argument to immediately close this PR. |
Closing as a non-issue, but a great source of information... hopefully to be converted into documentation. |
This confusion is mostly my fault. The only explanation about |
Don't forget that the other documentation is the canonical.schema.json file as well. Anything that can be clarified in there directly is a good source. (The most direct reference to the subject at hand the better.) |
I will try to remember rewriting the comments there after we finish rewriting the canonical data files. |
I was confused about the inconsistency between the description and the property. This is partly because I was familiar with the history of the exercise, which has had both If we're only going to have one, I don't care much which one it is, only that it's consistent :) |
To clarify—I was writing a generator for beer-song in Ruby, and needed to decide what to use to determine the name of the method. If that's property, that's all I need to know :-) |
…-cipher rotational-cipher: Implement Rotational Cipher
Considering that this error would make automatic test generationimpossible, and that it is being fixed in a short time, we're not
bumping the MAJOR version.
Almost certainly nobody is already depending on the semanticversioning of the test data.
What I wrote above make no sense at all. 😁