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

Sort practice exercises by difficulty #785

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

colinleach
Copy link
Contributor

The ordering of exercises on the website page has become fairly random. It would be good to have them sorted easy-medium-hard like most other tracks.

I got a sorted list with jq: .exercises.practice | sort_by(.difficulty). There was some manual copying/pasting after that (I forgot a lot of jq, sorry!), but I was encouraged to see that I ended up with the same line count, and configlet lint was happy with the result. I think this gives us a list with difficulties 1-10, ascending. The Exercism website should follow this, perhaps after some delay.

Addressing the question of whether difficulties are correctly assigned is a whole other challenge.

Copy link
Contributor

@depial depial left a comment

Choose a reason for hiding this comment

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

This will make things nicer! I'd always wondered how the ordering was determined on the website.

@depial depial merged commit a0ae8a1 into exercism:main Sep 12, 2024
2 checks passed
@colinleach
Copy link
Contributor Author

The web page looks good in an incognito window, all nicely sorted. I panicked when I looked at it from my own account - it's showing me all the old concept exercise drafts from exercises/concepts.wip even though they are not in config.sys. That seems to be a maintainer-only thing.

@depial
Copy link
Contributor

depial commented Sep 13, 2024

I noticed those as well and plan to work through them soon. I saw that LaTeX was being used in the instructions/introduction of at least one of them, so I'll probably be opening an issue about migrating those to unicode, since LaTeX doesn't seem to render on the website.

@colinleach
Copy link
Contributor Author

I noticed those as well and plan to work through them soon.

Honestly, I can't recommend doing much work on the old drafts. I tried using annalyns-infiltration in PR #782, as it seemed relatively uncontroversial, but even that didn't go well. My current feeling (backed by feedback from other reviewers) is that we can probably reuse the examplar and runtests code, but all the markdown needs rewriting from scratch. That's what I'm aiming to do, making it closer to the Python syllabus.

See also my (not-yet-written) comments on #780.

@colinleach colinleach deleted the sort-practice-exercises branch September 15, 2024 15:18
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.

2 participants