code-golf / code-golf

A game designed to let you show off your code-fu by solving problems in the least number of characters.
https://code.golf
MIT License
1.1k stars 101 forks source link

hybrid lang selector #1178

Closed JayXon closed 1 day ago

JayXon commented 3 weeks ago

Description posting my highly upvoted discord suggestion so that it doesn't get lost, if you upvoted in discord, please also upvote this issue

image

SirBogman commented 3 weeks ago

I like this idea for a few reasons. It's useful to have a filtered list of the languages that you have solutions for, and their byte/char counts, like we currently do. It's not useful to see a list of all available languages, with each one taking up space in the layout. Particularly on mobile, the space it takes is significant.

The drop-down selector could show all languages. Selecting a language there wouldn't immediately add it to the list. It would just allow you to submit a solution, which would then update the list of languages that you have solutions for.

mousetail commented 3 weeks ago

Perhaps also have a few slots also for your most popular languages overall? Especially when you don't have any solutions for the hole yet it would be convenient.

MichalMarsalek commented 2 weeks ago

Perhaps also have a few slots also for your most popular languages overall? Especially when you don't have any solutions for the hole yet it would be convenient.

This is a must.

SirBogman commented 2 weeks ago

Perhaps also have a few slots also for your most popular languages overall? Especially when you don't have any solutions for the hole yet it would be convenient.

I think that it would default to your current language, just like it currently does. You wouldn't have to manually add a slot. Your current language would be auto-selected and submitting a solution would make that into a slot. So I don't think it would be as bad as you are imagining.

I think we could eventually add a way to ensure certain languages always have their own slots. For example, right click on them and "always show" or not. But it may not make it into an initial implementation.