On all public Stack Exchange sites, questions and answers cannot be longer than 30,000 characters. One clear benefit to this limit is that users won't attempt to post tens of thousands of characters of log file data that no one in their right mind is going to sift through. However, with the fairly recent addition of Stack Snippets, I claim that there are some rare cases where a post above 30k characters is entirely legitimate.
Below are two of my recent Programming Puzzles & Code Golf questions. Both have been well received and both are very close to the 30k limit. One to two thirds of the characters in each are part of a Stack Snippet that is not meant to be read, only run.
- Red vs. Blue - Pixel Team Battlebots (29721 characters)
- Block Building Bot Flocks! (29977 characters)
The HTML/CSS/JavaScript in the Stack Snippets had to be minified to ensure I could fit the spec and rules into the post (I provide unminified JSFiddles).
While writing the second one, I was consistently just over the limit and had to tweak my language and formatting to stay under. (I'm aware I could golf down the minified snippet a fair bit, but as it just fits, I haven't bothered.)
Now I realize what I'm doing in these questions is very unique. Not many people on SE are writing Stack Snippets that run entire games. (Though I know my Red vs. Blue question inspired a number of derivatives.) But I've at least shown that there are cases where posting a lot of code that is not meant to be read can be legitimate, since running it in a Stack Snippet is the main purpose.
Therefore, is there no reason to not allow more than 30k characters in posts or posts with Stack Snippets? I realize there may be technical issues that put the fundamental limit at 32767 (215-1). If so, why not have that be the limit?
If avoiding bulky posts from new users is the only reason for the 30k limit, then it's not very useful, since a 10k character log file is not much easier to read through than a 30k one. Long, badly-formed questions of any length are just as easy to close.
More examples of long legitimate posts (feel free to add more):
- C# - Massive, Slow, and inefficient solution (29845 chars, no snippets, from VisualMelon)
(I'm not actually certain all SE sites have a 30k limit, but I'm assuming they do.)
<script src='...'></script>
. Any reason why you chose to implement it that way?