views:

138

answers:

7

I find myself writing a lot of reusable code because I couldn't find reusable code that other people wrote. Tiny stuff, like little winforms components, among other things.

I am looking for a website where I could release this sort of stuff to the public with licensing on it. I don't need something like Google Code/Sourceforge/Codeplex, as it's too big for tiny classes that I know can help others. Something like the PHP Classes Repository, but for .NET.

I don't need things like version control, forums, wikis, issue trackers... I just want a place to share code quickly and easily.

Does a such a site exist?

As I realized when I was commenting on an answer, the ideal vision of what I'm looking for (in my head) is something like the "flickr" of code. Something where I can toss up a package of source, write a brief description, tag it, and be done with it. If something like that doesn't exist, maybe I just found my next side project.

Joe answered with CodeKeep which is almost EXACTLY what I'm looking for, but it doesn't handle things like licensing, and it's almost a little too basic. But this is the closest so far.

EDIT: I should have mentioned, all these things are generally unrelated, and I don't want to package them all up together.

+11  A: 

There's http://www.codeproject.com/ and http://code.msdn.microsoft.com/

Rob Fonseca-Ensor
MSDN looks pretty close to what I was looking for.
snicker
A: 

You could just start a project on CodePlex and your project would essentially be the "Eensy Weensy Helpful .NET Classes Repository" or whatever you want to call it. That's what I suggest anyway.

BobbyShaftoe
Not a bad idea.. but most of these classes are completely unrelated. Doesn't make much sense to package them all together, and I think they would get lost as a group.
snicker
+3  A: 

You can post it on codeplex Or build you a little page and put the files sourceforge

Baget
CodePlex and Sourceforge are too big for this kind of stuff, comparable to Google Code.
snicker
Sorry but I don't see any different between CodePlex and Google Code
Baget
+2  A: 

CodeProject.com sounds like what you're looking for. Also maybe codeguru.com.

Joseph
CodeGuru is more like a tutorial/article site similar to CodeProject. I want somewhere that I can just toss up some source, tag it, declare my license, and be done with it.... and hopefully others can find it. I guess I want Flickr for code. Har har.
snicker
+4  A: 

I would recommend the Microsoft Code Gallery for general purpose C# classes/utilities. They will take lots of small submissions.

For small WPF and Silverlight samples, the Microsoft Expression Community Gallery works very well, and gets a fair amount of exposure.

Reed Copsey
Yeah i'm leaning more and more toward Code Gallery. I know it's going to be indexed well and that means a greater probability that someone will find my helpful eensy weensy classes.
snicker
I've used it in the past - The expression one is great - I got a good hundred downloads on one sample in about a week, which is good for something that was never advertised.
Reed Copsey
+3  A: 

My recommendation is start a blog and post all of your content there. Then have your source files on an associated: SourceForge, CodeProject, Assembla etc source hosting. I personally use Assembla, they offer free hosting for open source projects and give you SVN, web space, collaboration software etc.

Chris Marisic
This might be a good idea.. but a blog may get lost to the tubes of obscurity. Assembla looks pretty good.
snicker
You'd be surprised, if you create meaningful content it can syndicate forever. On my blog 2 of my shortest posts that were almost just one liners that solved problems that people made needlessly complex still brings in 100 of hits per month to them specifically. Even though they were written back in early 08.
Chris Marisic
+2  A: 

CodeKeep is another site that is used for this. The bonus is that they have Visual Studio addins that allow you to search through these code chunks right from your IDE.

Joe
This is almost EXACTLY what I was looking for, except it doesn't cover things like licensing and stuff.
snicker