The Problem
Many questions have answers which are of high quality, but which are also extremely long (compared to how short they could be). Some examples (see the accepted answer):
- What is the copy-and-swap idiom?
- What is The Rule of Three?
- How does guaranteed copy elision work?
- Why is processing a sorted array faster than processing an unsorted array?
While there's nothing wrong with writing a long and elaborate answer, many readers may be interested in a concise summary of the topic, rather than a 20 paragraph blog post about every little detail. Overly long answers create two major problems:
For readers who want to browse answers to get an overview, long answers towards the top force them to scroll through the entire top answer first, and this can be a huge scroll distance. The result is bad UX.
The longer an answer towards the top is, the fewer people are exposed to the answers below. The result is a more uneven and unfair distribution of upvotes, and lengthening your answer can be used as a malicious tactic to prevent your competition from gaining upvotes!
Could this be solved through sorting modes?
First of all, no. No matter how you sort, the top answer could always be overly long. This only mitigates the issue; it doesn't solve it.
Secondly, sorting modes are somewhat broken at the moment. For example, on the question var functionName = function() {} vs function functionName() {}, at the time of writing, all four sorting modes show the same answer at the top, because it is simulatenously
- the most upvoted answer
- the trending answer
- the most recently updated answer
- the oldest answer
Proposed Solution
I believe the best way to address this issue is through UI. Add a cut-off point beyond which you have to click to reveal the rest, such as:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat ...
Click to reveal more
It would probably be best to base the cut-off point on the size of the rendered Markdown content.
Clarification: The cut-off point shouldn't be anywhere near as close as in this lorem ipsum example! The point is that if you make your answer a novel, not every reader is forced to scroll past that novel. In the answer https://stackoverflow.com/a/3279550/5740428, the cut-off point should be somewhere around the second major heading An in-depth explanation
.
Concise answers (up to a few paragraphs?) would be unaffected, but answers which are practically novels would be limited. If a user was interested in an overly long answer, they could click to see the full content; otherwise, they could scroll past more easily.
To clarify, I am not suggesting to lower the hard length limit.