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 Thoughts on hiding challenge sections with expandable details tags

Parent

Thoughts on hiding challenge sections with expandable details tags

+1
−0

I've recently started experimenting with hiding some of the sections in a challenge, using an expandable <details> tag. This seems to have some advantages, but I'm interested to hear how people find this - any good and bad points and general advice on how and where to use this.

I'm asking this in the context of challenges specifically, not general Q&A.

I'm not expecting this to lead to rules, just guidance on what people find easiest to use. I'm interested in hearing from people who write answers and people who browse answers, and people who do both. I'm interested in what you find useful on a first reading of a new challenge, and also what you find useful when revisiting a challenge you have already read, to see new answers.

How does this vary on different types of device - small or large screens, landscape or portrait, touchscreen or mouse and keyboard. I don't want to disadvantage one device type.


For example, I initially just hid a terminology section, but more recently I'm considering also hiding the input, output, and test cases sections, so only the introductory overview is visible.


Partially hidden example

A brief introductory overview of what the challenge is about.

Terminology The terms used in a particular field; nomenclature.

Input

  • The data provided to your code
  • Specific details

Output

  • The data produced by your code
  • Specific details

Test cases

Test cases are in the format input : output

A : apple
B : banana
C : citron

Fully hidden example

A brief introductory overview of what the challenge is about.

Terminology The terms used in a particular field; nomenclature.
Input
  • The data provided to your code
  • Specific details
Output
  • The data produced by your code
  • Specific details
Test cases Test cases are in the format input : output
A : apple
B : banana
C : citrus
History
Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

0 comment threads

Post
+1
−0

I don't like the partially or fully hidden examples. Those require more work to see the details, instead of just scrolling on.

Anyone curious enough about a challenge from the title will want to read what it's about. Making that difficult is just annoying without any upside.

Short challenges don't need to do anything special. Long challenges can use headings to reduce visual clutter, as in your partially hidden example.

History
Why does this post require moderator attention?
You might want to add some details to your flag.

1 comment thread

Possible upsides (not sure they make it worthwhile though) (1 comment)
Possible upsides (not sure they make it worthwhile though)
trichoplax‭ wrote over 1 year ago

I agree that there is extra work for someone reading the question for the first time (which is why I wanted to get feedback before deciding whether to use this more).

The potential upside I'm weighing against that is the ease of getting to the answers for someone who has already previously read the challenge details. Maybe also the ease of getting to a specific section for someone assessing whether an answer is valid.

Some of my challenges have quite long sections so perhaps the short sections here don't make a good example. I'll try to find an example of a challenge with a longer section and edit a link into the question, in case that makes a difference.