Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Meta

Comments on Leaderboards are live

Parent

Leaderboards are live

+6
−0

You might have noticed that challenges now show a leaderboard in addition to the table of contents. This is something this community has wanted for a while, and now, thanks to user contributions and a lot of chatting in Discord, it's live. See this blog post, which I meant to link here more promptly (sorry!).

The table of contents sorts answers by voting, but golfers wanted a leaderboard that sorts challenge responses by code size. And because it's not really fair for answers in different languages, some verbose and some designed for golfing, to compete head to head, the community also needed a way to show the languages in this leaderboard. While a userscript can solve the problem for those in the know, we and the community wanted this to be readily available to all.

Enter one of our users, Moshi, who made this for the community (no userscripts required):

sorted by size

Or, grouped by language to give folks using Java, C, and others a shot:

sorted by language

We're aware of a bug on mobile; it's fixed and awaiting deployment.

If you see anything that's not quite right, please let us know.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

0 comment threads

Post
+3
−0

Seems to be an issue with the ordering (across languages) when "Group by language" is set. When I first load the page, they are ordered with the most recent post first. If I then uncheck "Group by language" and check it again, they are ordered by byte count. These should be consistent. I'd prefer the byte count version but… I am not a Java programmer.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

2 comment threads

How should languages be sorted? (2 comments)
It's possible this happens because of [this line](https://github.com/codidact/qpixel/blob/develop/pub... (1 comment)
It's possible this happens because of [this line](https://github.com/codidact/qpixel/blob/develop/pub...
user‭ wrote over 3 years ago

It's possible this happens because of this line, where it keeps the leaderboard from before if it's already loaded. Perhaps sorting the leaderboard in getLeaderboard itself might fix it.