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

Post History

60%
+1 −0
Meta Thoughts on hiding challenge sections with expandable details tags

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 peop...

3 answers  ·  posted 2y ago by trichoplax‭  ·  last activity 2y ago by celtschk‭

#2: Post edited by user avatar trichoplax‭ · 2022-10-19T04:23:16Z (about 2 years ago)
Separate examples with horizontal lines
  • 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.
  • <details><summary>Terminology</summary>
  • The terms used in a particular field; nomenclature.
  • </details>
  • ## 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`
  • ```text
  • A : apple
  • B : banana
  • C : citrus
  • ```
  • # Fully hidden example
  • A brief introductory overview of what the challenge is about.
  • <details><summary>Terminology</summary>
  • The terms used in a particular field; nomenclature.
  • </details>
  • <details><summary>Input</summary>
  • - The data provided to your code
  • - Specific details
  • </details>
  • <details><summary>Output</summary>
  • - The data produced by your code
  • - Specific details
  • </details>
  • <details><summary>Test cases</summary>
  • Test cases are in the format <code>input : output</code>
  • ```text
  • A : apple
  • B : banana
  • C : citrus
  • ```
  • </details>
  • 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.
  • <details><summary>Terminology</summary>
  • The terms used in a particular field; nomenclature.
  • </details>
  • ## 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`
  • ```text
  • A : apple
  • B : banana
  • C : citron
  • ```
  • ---
  • # Fully hidden example
  • A brief introductory overview of what the challenge is about.
  • <details><summary>Terminology</summary>
  • The terms used in a particular field; nomenclature.
  • </details>
  • <details><summary>Input</summary>
  • - The data provided to your code
  • - Specific details
  • </details>
  • <details><summary>Output</summary>
  • - The data produced by your code
  • - Specific details
  • </details>
  • <details><summary>Test cases</summary>
  • Test cases are in the format <code>input : output</code>
  • ```text
  • A : apple
  • B : banana
  • C : citrus
  • ```
  • </details>
#1: Initial revision by user avatar trichoplax‭ · 2022-10-19T04:20:05Z (about 2 years ago)
Thoughts on hiding challenge sections with expandable details tags
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.

<details><summary>Terminology</summary>
The terms used in a particular field; nomenclature.
</details>

## 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`

```text
A : apple
B : banana
C : citrus
```

# Fully hidden example

A brief introductory overview of what the challenge is about.

<details><summary>Terminology</summary>
The terms used in a particular field; nomenclature.
</details>

<details><summary>Input</summary>

- The data provided to your code
- Specific details
</details>

<details><summary>Output</summary>

- The data produced by your code
- Specific details
</details>

<details><summary>Test cases</summary>
Test cases are in the format <code>input : output</code>

```text
A : apple
B : banana
C : citrus
```
</details>