Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pop count - Added practice exercise #317

Merged
merged 3 commits into from
Feb 1, 2024
Merged

Conversation

Nerwosolek
Copy link
Contributor

I've added pop-count exercise as @colinleach and @jonmcalder suggested.

Somehow during autogeneration config.json was changed in other parts also, I guess only for formatting issues.

Copy link

github-actions bot commented Feb 1, 2024

Hello. Thanks for opening a PR on Exercism 🙂

We ask that all changes to Exercism are discussed on our Community Forum before being opened on GitHub. To enforce this, we automatically close all PRs that are submitted. That doesn't mean your PR is rejected but that we want the initial discussion about it to happen on our forum where a wide range of key contributors across the Exercism ecosystem can weigh in.

You can use this link to copy this into a new topic on the forum. If we decide the PR is appropriate, we'll reopen it and continue with it, so please don't delete your local branch.

If you're interested in learning more about this auto-responder, please read this blog post.


Note: If this PR has been pre-approved, please link back to this PR on the forum thread and a maintainer or staff member will reopen it.

@github-actions github-actions bot closed this Feb 1, 2024
@jonmcalder jonmcalder reopened this Feb 1, 2024
@jonmcalder
Copy link
Member

@Nerwosolek Thanks! Will review this when I get a gap.

@colinleach you'll probably beat me to it so feel free to review and provide feedback or merge if you're happy.

@Nerwosolek Nerwosolek mentioned this pull request Feb 1, 2024
Your basic strategy is great, and has been preserved here. However, Jon is keen to encourage the use of native pipes, now they are available (since v4.1.0). More lines, but perhaps better readability than nested functions - especially as the pipeline gets longer.

At Jon's prompting, I wrote this up in an [approaches doc](https://exercism.org/tracks/r/exercises/reverse-string/approaches/native-pipes) about 2 weeks ago. That article includes various useful links.
Copy link
Contributor

@colinleach colinleach left a comment

Choose a reason for hiding this comment

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

Looks great, thank you for submitting.

I suggested a small change to example.R, using the same functions with native pipes rather than nested. This is a newer style that is now encouraged.

I'm puzzled by all the changes in the top-level config.sys. These look generally sensible and the sort of thing that configlet might do automatically, but not something I've seen before. I've held off merging until @jonmcalder has had chance to look at this and give an opinion.

Alternative approach: @BethanyG, have you seen anything like this on the Python track?

@jonmcalder
Copy link
Member

I agree that the changes to config are just formatting (whitespace and ordering of fields), so presumably that's just a recent-ish improvement to configlet.

Happy to merge - thanks again @Nerwosolek and to @colinleach for reviewing!

@colinleach colinleach merged commit a6088bd into exercism:main Feb 1, 2024
3 checks passed
@Nerwosolek Nerwosolek deleted the pop-count branch February 1, 2024 20:02
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.

3 participants