Forum dedicated to code samples

Before the forums on windowsforms.net were closed, there was a forum for code samples there. It was heavily abused for asking general questions (probably because it was the first one on the page), but I think it's a good concept.
People could share some code too big as a code snippet, and not big enough to make it into a product of its own.

Maybe we could have a similar forum here?! What do you think?

[412 byte] By [DanielRieck] at [2007-12-16]
# 1
Hi,

I think thats a good idea and would prove to be useful.

However, the next question that comes up is whether the users would upload the samples elsewhere and provide a URL to the code sample or if the this forum will need to support a Upload code sample option?

I checked that some of the other popular forums have a dedicated forum titled "CodeBank" where people can upload entire code samples as zip files which I think is a good idea.

Regards,
Vikram

Vikram at 2007-9-9 > top of Msdn Tech,Feedback for forums and MSDN websites,Suggestions for Forums website...
# 2
Hi,

Yes indeed. This would be quite useful. But the problem that I see here would be how to handle malicious programs. A coder might write a trojan-like program and name it "ADO.Net - Beginners Approach", this would definitely generate lots of downloads and in reality endanger their systems.

I think the solution here is for better moderation. The code to be uploaded must be checked by moderators if it contains malicious codes. This could be a heavy burden to be placed on the moderators...

Lastly, If this could be implemented, microsoft should include a code-viewer in their help documentations, so that users could just search the code-database...
cheers,

Paul June A. Domag

PaulDomag at 2007-9-9 > top of Msdn Tech,Feedback for forums and MSDN websites,Suggestions for Forums website...
# 3
Hi,

Thats true - someone can always exploit the upload feature to uplood malicious code. Some kind of virus check as in Hotmail upload needs to happen if such a feature is to be implemented.

Regards,
Vikram

Vikram at 2007-9-9 > top of Msdn Tech,Feedback for forums and MSDN websites,Suggestions for Forums website...
# 4

Good point about malicious code, but I was thinking people would post the source code directly, so there would be no need for virus checks. Of course, this bug needs to be fixed first...

I guess what Paul meant that somebody could post a class that had malicious code hidden in it, like deleting files or opening backdoors into the system. I agree that a moderator should be looking at the code samples and approve them.

DanielRieck at 2007-9-9 > top of Msdn Tech,Feedback for forums and MSDN websites,Suggestions for Forums website...
# 5
So we've been thinking about this feature. What I think would be good eventually is the ability to tag the code that's posted in a way that would turn it into an RSS enclosure that could be consumed by VS. No need to allow for file uploads to support that. It would work primarily for snippets in each catagory.
JoshLedgard at 2007-9-9 > top of Msdn Tech,Feedback for forums and MSDN websites,Suggestions for Forums website...