DEV Community

loading...

Do you prefer a Github Gist or Markdown code snippet in a post?

gvetri profile image Giuseppe Vetri ・1 min read

When using the dev.to night theme (Which is my favorite), I prefer the Markdown code Snippet because it's dark and doesn't burn my eyes.
Burned

But in the other hands if the publisher is cross-posting and use a Github Gist and modify that in one place and see that change reflected in multiple sites is an excellent advantage for the one who publishes the Gist.

What are your thoughts about it?

Discussion

pic
Editor guide
Collapse
smartcodinghub profile image
Oscar

I always prefer snippets, as I easily see the code and the explanation about it together without context change (change tabs vs just a bit of scroll). But if the snippet is too long, I like a gist/repo.

EDIT: Also, you are writting for other, so you want to make it easy for them to read it. And only then you want to make it easy for you to update your content (something that occurs way less times). It seems like a premature microptimization ;)

Collapse
gvetri profile image
Giuseppe Vetri Author

That's a great perspective!. I was writing some post and thought about it. I think it is a micro-optimization. 😉