exercism / julia

Exercism exercises in Julia.
https://exercism.org/tracks/julia
MIT License
68 stars 68 forks source link

Sort practice exercises by difficulty #785

Closed colinleach closed 2 months ago

colinleach commented 2 months ago

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.

colinleach commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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.