16

Add a possibility to run SCSS, Sass and other CSS preprocessors (LESS, Stylus, PostCSS, maybe others) in code snippets. Many developers use CSS preprocessors. This will remove need to convert demos to plain CSS and/or adding links to third-party sites which support this (like CodePen) just to demonstrate code examples.

CSS Preprocessors and MCVE

Some people downvoted this suggestion because they think that this will encourage people to post non-minimal examples. I don't agree with this.

Violation of MCVE is caused by people not able or not willing to localize a problem. Anybody can post tons of HTML/CSS/Javascript (regardless of preprocessor usage) or even just link to his development site and ask something link "plz help, it's not working". I'm sure most of us saw a lot of question like this. And I don't see any connection between using CSS preprocessors and code minimalism.

Often people post pretty minimal Sass/SCSS because they are just using it. I know that I can edit question and translate Sass/SCSS to CSS or ask OP to do it. But I think this is really redundant action. If question is not MCVE, it should be closed/deleted/downvoted but lack of this possibility will encourage people to post links to sites like CodePen because our code snippet don't have many features.

6
  • 2
    Meh! Code snippets are overrated enough already. MCVE's is what we want. Commented Jun 29, 2017 at 17:34
  • 3
    @πάνταῥεῖ What is contradiction between MCVE and SCSS/SASS support in code snippets? Commented Jun 29, 2017 at 17:38
  • Hidden implications are ... Commented Jun 29, 2017 at 17:38
  • There is a concern about people unnecessarily posting Sass/SCSS source code when the actual problems lie in the generated CSS. That'd mean an MCVE would have a shell of Sass around it, which is not so M. Wouldn't comments help here though?
    – D-side
    Commented Jul 2, 2017 at 19:55
  • 1
    @D-side Not always at all. Often people post pretty minimal Sass/SCSS because they are just using it. I know that I can edit question and translate Sass/SCSS to CSS or ask OP to do it. But I think this is really redundant action. If question is not MCVE, it will be closed/deleted/downvoted but lack of this possibility will encourage people to post links to sites like CodePen because our code snippet don't have many features. Commented Jul 2, 2017 at 20:12
  • This is exactly what I mean. However, as long as the problematic Sass/SCSS is in the question as well, links to external sandboxes are perfectly okay (like, we don't expect to have ideone built-in, right?). This makes the benefit of this feature rather... slim.
    – D-side
    Commented Jul 2, 2017 at 20:52

0

You must log in to answer this question.

Browse other questions tagged .