1

I like the fact that the team is trying to improve the Stack Overflow editor. There is scope for it.

I am trying to understand the recently enhanced "Stack Snippets" feature. Seems like it allows users to run the code on the Stack Overflow site. Why would users look to run/test code on this site ? I would imagine they would have already done that in their IDE's and their dev environments.

Currently I only see support for running UI/Web/Browser related languages. Will this feature be enhanced to support other languages in the future ?

4
  • 4
    Stack snippets don't run server-side. They run client-side, in a sandbox. Mar 2, 2015 at 17:14
  • thanks , have updated my question to reflect this !!
    – Chiseled
    Mar 2, 2015 at 17:22
  • 5
    As soon as your browser can compile and run a C++ program. 6 to 8 decades. Mar 2, 2015 at 17:44
  • @HansPassant Well, there are tools to compile C++ programs to JavaScript, and there are C++ compilers written in C++, so... Mar 2, 2015 at 18:02

1 Answer 1

7

The questioner certainly should have tested the code in their dev environment, but as an answerer it provides an easy way to test/see the behavior being described, without having to set up a new environment for the code.

It also helps remove JSFiddle links, which were in many cases being used for the code itself. Even when used correctly, you had to visit a different site. Now you can run the code without leaving the question.

As far as desktop languages go, no indication has been made that its coming, though I for one would love to see an IDEOne or .NETFiddle clone come to SO!

2
  • Better a coliru clone than an IDEOne clone. The latter one does not allow custom options, and deletes too much linked code. Mar 2, 2015 at 17:16
  • 1
    @Deduplicator Bah, no C#. But you C++ folks can have that one :) Mar 2, 2015 at 17:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .