function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
advlgxadvlgx 

Community Code Samples Sharing

Is there a place where the community can post code for purposes of sharing. I would like to post some of mine and learn from the contributions of others.
advlgxadvlgx
If there is one, someone please let me know.

Otherwise, please promote this idea I found
http://ideas.salesforce.com/article/show/10094097/Show_in_Tell_code_share


Message Edited by advlgx on 11-20-2008 06:42 AM
RickyGRickyG
developer.force.com/codeshare.  That's what it is for.

Hope this helps.
advlgxadvlgx
Thanks!
advlgxadvlgx
My first, simple attempt at codeshare.....

http://developer.force.com/codeshare/apex/projectpage?id=a06300000031s0fAAA


Message Edited by advlgx on 11-20-2008 07:47 AM
Jon Mountjoy_Jon Mountjoy_
This is almost correct.

Code Share is not meant to be a place to simply share code.  Rather, it is a place to list open source code projects, where our community can (potentially) collaborate and extend/fix/help code the solution.

In other words, projects that as the Salesforce Android project:
http://developer.force.com/codeshare/apex/projectpage?id=a06300000030x1bAAA
are suitable - anyone can jump in here, help the author extend this code project and build a (probably quite large) project ecosystem.

Very small pieces of code (a Visualforce page and a controller for example) are not really suitable as projects.  They're more "code samples" than "code projects" - which are unfortunately not suited for Code Share (yet - perhaps we should add that as a category....Idea anyone)

For code samples, I wonder if, for now, you could simply post it up to the wiki and maintain a link on this wiki page?
http://wiki.apexdevnet.com/index.php/Code_Samples

Hope that helps
Jon


advlgxpmadvlgxpm

Yeah, we need a samples area. This is invaluable to learning new things and enhancing adoption for new developers. A category would be fine, let's just get it done. You would be easily be able to see 100s of examples to small problems, or enhancements, like I posted. Makes us all look better. You can find javascript snippets to do almost anything now to enhance your web apps on the web. Resources like this will only enhance developer adoption and the platform "kool-aid" adoption.

I don't think the wiki/link back url thing would be nearly as effective.

Here is a similar Idea already posted

http://ideas.salesforce.com/article/show/57416/A_UserSubmitted_CodeSControlEnhancement_Sample_Library

Jon Mountjoy_Jon Mountjoy_
I agree advlgxpm - and I'll certainly be bringing it up in my next community meeting. Unfortunately, in the mean time I think we'll have to go with the wiki link I just posted for code samples, and remove the samples from Code Share - otherwise it would lead to more confusion.

Feel free to ping me at j mountjoy at salesforce.com.

Regards,
Jon
--
Jon Mountjoy || Community Manager || http://developer.force.com/
advlgxpmadvlgxpm
Nope, can't even do the wiki thing. Getting error:

A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:
(SQL query hidden)
from within function "User::addToDatabase". MySQL returned error "1062: Duplicate entry 'Paul Deschenes (Paul Deschenes)' for key 2 (localhost)".
Jon Mountjoy_Jon Mountjoy_
Uh. I'll get Michael to fix this for you ASAP.