Question

I have some VB.NET code snippets that could be helpful for some people. Can I share them on Stack Overflow?

If not, which place do you recommend me to share them on?

Était-ce utile?

La solution

I would suggest using CodeTidy (http://codetidy.com/)

Which will allow you to share your code snippets easily.

Share them wherever you like, though when posting it as a question ask "How can I do x?" then answer with your snippet.

Also in addition: https://codereview.stackexchange.com/ may be a good place for you too (as bart said) for reviewing snippets, not for sharing though.

Autres conseils

No, Stack Overflow is not the right place to share such snippets. You might be better off with sharing them on GitHub or something similar.

The only exception (as juergen d suggested) would be to self-answer a question using the particular code snippet. If you do so however, make sure that your question is good enough to stand up to scrutiny. Self-answering does not imply you can get away with asking a question that would normally have been closed.

Stack Overflow does have the option to Answer Your Own Question, so there are some cases when it's appropriate to essentially share some knowledge you have in the Q&A format provided by the site. However, it's only really appropriate when you are sharing knowledge related to a very specific programming problem you've had, not just a general "Hey look at these cool snippets I have!".

If you're looking for a good place to act as a repository for some of these snippets, try the suggestions that Bart and Ryan posted, or consider creating your own blog. On your own blog, you can feel free to post all the articles you want and be however as vague or specific as you would like in regards to your snippets.

I found http://pastenow.tk/ who is better for sharing Code snippets

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top