What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 133 Stack Exchange communities.

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?

share|improve this question

migrated from stackoverflow.com Aug 17 '12 at 15:11

This question came from our site for professional and enthusiast programmers.

2  

4 Answers 4

up vote 5 down vote accepted

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: http://codereview.stackexchange.com/ may be a good place for you too (as bart said) for reviewing snippets, not for sharing though.

share|improve this answer
    
Thank You for your answer i'll do it –  Henry Alberto Rodriguez Rodrig Aug 17 '12 at 15:15
10  
If you do post it on Stack Overflow, make sure your question is good enough. Self-answering does not imply you can get away with asking a question which would otherwise be closed. –  Bart Aug 17 '12 at 15:18
    
Yes, good point code snippets that can be found elsewhere easily shouldn't be posted, however if you feel that this would benefit people that can't be found in most places then go for it. –  Ryan McDonough Aug 17 '12 at 15:26
5  
Code Review should only be used if the OP wants his working code reviewed. It should not be used as a snippet dump just to be able to point people to it. –  Bart Aug 17 '12 at 15:29

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.

share|improve this answer
    
Thank You for your answer –  Henry Alberto Rodriguez Rodrig Aug 17 '12 at 15:14
1  
But if the snippet solves a problem the user could ask a question and add the answer right away. –  juergen d Aug 17 '12 at 15:14
2  
@juergend That would be the sole distinction, yes. But then it really has to be a clear problem the OP faced, which his code solves. If that is not the case, self-answers should not be used for that. –  Bart Aug 17 '12 at 15:15

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.

share|improve this answer

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

share|improve this answer
8  
Better how? Please expand your answer. –  Anna Lear Aug 17 '12 at 19:30
    
I agree with Anna, this needs more detail. (This comment exists so that you know one more person to @-notify for possible downvote removal if you edit.) –  Pops Aug 17 '12 at 22:08

You must log in to answer this question.

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