Skip to content

Please review: Implemented exercise nucleotide-count#349

Closed
Vankog wants to merge 1 commit intoexercism:masterfrom
Vankog:add-nucleotide-count
Closed

Please review: Implemented exercise nucleotide-count#349
Vankog wants to merge 1 commit intoexercism:masterfrom
Vankog:add-nucleotide-count

Conversation

@Vankog
Copy link
Copy Markdown
Contributor

@Vankog Vankog commented Sep 3, 2017

WIP
edit: done(?)

@Vankog
Copy link
Copy Markdown
Contributor Author

Vankog commented Sep 4, 2017

Well it seems I'm done. Please review!

@Vankog Vankog changed the title Implement exercise nucleotide-count Please review: Implemented exercise nucleotide-count Sep 4, 2017
Copy link
Copy Markdown
Contributor Author

@Vankog Vankog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see file comments

Comment thread config.json
@@ -1,1052 +1,1065 @@
{
Copy link
Copy Markdown
Contributor Author

@Vankog Vankog Sep 4, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran the configlet fmt as described in the documentation:
https://github.com/exercism/docs/blob/master/you-can-help/implement-an-exercise-from-specification.md#configuring-the-exercise
It seems the configlet wasn't run in quite a time. Or the formatter changed drastically... don't know right now.
edit: oh it seems the fmt part is new for 12 days... so no wonder why it was never run.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. The configlet does many changes to this file, and they seem out of the scope of this MR.

We should handle configlet changes in a new PR (it'll perfectly fine if you run it and create that PR).

So, I'd leave this file untouched, just modifications related to nucleotide-count. You can do those changes compatible with the new configlet. It'll be ok. But, I wouldn't change the rest of exercises configuration in the PR.

What do you think?

Copy link
Copy Markdown
Contributor Author

@Vankog Vankog Sep 8, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, actually I did so in the JS track with a separate PR that got merged just recently. But this epiphany struck me too late for thes ecma track. ;-)
I'll split it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment thread config.json
],
"uuid": "62d60b42-93bc-4de9-90d1-1ca18a847812"
},
{
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put it here, because it is related to the rna-transcriptor. That's why I let it unlock with that exercise.
The uuid I generated with https://www.uuidgenerator.net

@@ -0,0 +1,69 @@
{
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated and customized the package.json

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

package.json is kept in sync with the one in the root folder. All exercises have the same package.json. If this is different, well lose your customizations. Is there anything special (different from the main one) you need?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, in that case I'll revert it. It just includes some new versions and a customized description and authoring.

expect(new Dna(strand).count('Z')).toEqual(0);
// special-character-nucleotides
expect(new Dna(strand).count('Ä')).toEqual(0);
expect(new Dna(strand).count('×')).toEqual(0);
Copy link
Copy Markdown
Contributor Author

@Vankog Vankog Sep 4, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inserting a Unicode character by design.
.... and for the lols...

Comment thread config/maintainers.json
@@ -1,35 +1,35 @@
{
Copy link
Copy Markdown
Contributor Author

@Vankog Vankog Sep 4, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

formatted by configlet fmt.
Same reasoning as above.
edit: oh it seems the fmt part is new for 12 days... so no wonder why it was never run.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be included in the new PR with configlet changes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dito

@Vankog Vankog force-pushed the add-nucleotide-count branch from b2d920a to e9e9679 Compare September 4, 2017 02:32
@tejasbubane
Copy link
Copy Markdown
Member

Hi @Vankog. Thanks a lot for your contribution! 👍

Could you please sync up the tests with the canonical tests here?
These are the common set of tests we prefer to adhere to with all languages in exercism.

Copy link
Copy Markdown
Contributor

@rchavarria rchavarria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @tejasbubane. Could you make tests fit the canonical ones?

Anyway, it's fine if you want to add more tests than the provided in the canonical ones. But they should be related to the uniqueness of JavaScript as a language.

On the other hand, I find the use of the 💩 really fun. I'd keep a expect or a test for that 😆

Comment thread config.json
@@ -1,1052 +1,1065 @@
{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. The configlet does many changes to this file, and they seem out of the scope of this MR.

We should handle configlet changes in a new PR (it'll perfectly fine if you run it and create that PR).

So, I'd leave this file untouched, just modifications related to nucleotide-count. You can do those changes compatible with the new configlet. It'll be ok. But, I wouldn't change the rest of exercises configuration in the PR.

What do you think?

Comment thread config/maintainers.json
@@ -1,35 +1,35 @@
{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be included in the new PR with configlet changes.

@@ -0,0 +1,69 @@
{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

package.json is kept in sync with the one in the root folder. All exercises have the same package.json. If this is different, well lose your customizations. Is there anything special (different from the main one) you need?

@Vankog
Copy link
Copy Markdown
Contributor Author

Vankog commented Sep 8, 2017

Alright, thanks for your feedback. Added some replies to the reviews.
I agree with splitting the configlet fmt into another PR. I'll do so.

About the tests: In the JS track I just got the same advice about the canonical versions.
I'll probably will open a discussion in the canonical track to discuss some changes, because I think some canonical test cases in the different exercises might be bit suboptimal. Firstly, they should provide an optimal B/TDD experience to teach about. It's a learning platform after all. Secondly, some do not seem to cover all suitable edge cases properly, but we have to look closer to the specifics to judge.

@tejasbubane
Copy link
Copy Markdown
Member

About the tests: In the JS track I just got the same advice about the canonical versions.
I'll probably will open a discussion in the canonical track to discuss some changes, because I think some canonical test cases in the different exercises might be bit suboptimal. Firstly, they should provide an optimal B/TDD experience to teach about. It's a learning platform after all. Secondly, some do not seem to cover all suitable edge cases properly, but we have to look closer to the specifics to judge.

Yes, even I felt the same while looking at the tests for this exercise. Please open a discussion there.

@Vankog Vankog force-pushed the add-nucleotide-count branch 2 times, most recently from ce53ae3 to 0ad06ed Compare September 8, 2017 15:45
Comment thread config.json
],
"unlocked_by": "rna-transcription",
"uuid": "9debee8e-003d-4eb2-bf97-6d3764d024ca"
},
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put it here, because it is related to the rna-transcriptor. That's why I let it unlock with that exercise.
The uuid I generated with https://www.uuidgenerator.net

@Vankog
Copy link
Copy Markdown
Contributor Author

Vankog commented Sep 8, 2017

OK, reverted the configlet formatting for this PR and removed the package.json.

I also created a discussion PR for the canonical test:
exercism/problem-specifications#895
I have yet to adjust my test accordingly and I'll wait for what it brings. Till then this PR is on hold.

@Vankog Vankog force-pushed the add-nucleotide-count branch 2 times, most recently from d3d5218 to 8ecd75f Compare September 17, 2017 16:55
@tejasbubane
Copy link
Copy Markdown
Member

package.json should be added for this exercise.

I know this PR is on hold, but something I just noticed and commenting so it does not miss out later.

@matthewmorgan
Copy link
Copy Markdown
Contributor

@Vankog what is the status of this PR? It looks like your PR to problem-specifications has been closed? Should we close this too, or are you intending to finish it?

Thanks!

@Vankog
Copy link
Copy Markdown
Contributor Author

Vankog commented Dec 6, 2017

no its just closed, because it was splitted.

see exercism/problem-specifications#895 (comment)

However, until next year I am not able to work on this. Hot phase for my masters thesis... ;-)

I intend to return to these issues.

@matthewmorgan
Copy link
Copy Markdown
Contributor

OK, we're going to close this PR for now. Thanks for the update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants