Many answerers create stunning visualizations to augment their answers. Numerical analysis is often leveraged to come to results. Both are using programming knowledge as a piece of the mathematician's toolkit to explore a question. Yet, Mathematics Stack Exchange doesn't seem to encourage posting the actual code. I'm asking whether we ought to revisit that idea.
Yes, yes, yes - I understand that coding is not the focus of this site. I am well aware of (read: reliant on) the other Exchanges out there for programming purposes. I'm not proposing Mathematics Stack Exchange be used as a Q&A for coding practices.
Can I frame when I'm thinking? Okay, consider this. When I compare my potato-quality visuals on this question to robjohn's beautiful answer, I find myself thinking "how in the world did they script that?" I could struggle with the task for a while. It could be fun. If I needed assistance, I could ask the answerer in the comments or even create a secondary question, probably on another exchange. But that seems to fragment the question and demand an unnecessary expenditure of man-hours to reproduce the result.
Stepping away from visualizations, I'd wager that posts with numerical analysis do tend to post code more frequently, but even then, it's not
a requirement common practice or guided by any encouragement of which I'm aware.
I feel this is unfortunate, as insight into the programs could augment and expedite user understanding, even if scripted in varying languages and even if, years from now, the answer may use deprecated code. Providing a way to augment answers with code would only further the potential of an answer.
With the focus being mathematics and readability, code introduction could be viewed as supplementary. It'd be nice to have collapsible paste-bins for code blocks, for instance.
The idea, again, isn't to push code onto people, but to reduce the opacity of and increase the accessibility of answers. It'd only make our users stronger.
What are your thoughts?